/* Services Separador Section Styles based on Figma Design (node-id: 1:134) */

.services-separator-section {
    position: relative;
    width: 100%;
    background-color: #ffffff;
    overflow: hidden;
    box-sizing: border-box;
    padding: 0 0 105px; /* Top padding removed */
    display: flex;
    justify-content: center;
    align-items: center;
    scroll-margin-top: 165px; /* Fine-tuned to stop scrolling slightly earlier */
}

/* Inner Centered Container */
.services-separator-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 50px;
    max-width: 800px;
    width: 90%;
    margin: 0 auto;
    text-align: center;
    box-sizing: border-box;
}

/* Section Title - "Os Nossos Serviços" */
.services-separator-title {
    font-family: 'Helvetica Neue', Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 45px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -2px;
    color: #0c4b4d;
    margin: 0;
}

/* Icon Container & SVG styling */
.services-separator-icon {
    width: 142px;
    height: 84px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.services-separator-icon svg {
    display: block;
    width: 142px;
    height: 84px;
}

/* Text Container under Icon - Item spacing: 20px */
.services-separator-text-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

/* Subtitle Title - "Transformamos conhecimento..." */
.services-separator-subtitle-title {
    font-family: 'Helvetica Neue', Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1.2px;
    color: #179b9d;
    margin: 0;
}

/* Subtitle Description - "Apoiamos empresas..." */
.services-separator-subtitle-desc {
    font-family: 'Helvetica Neue', Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.2px;
    color: #0c4b4d;
    margin: 0;
}

/* --- Animations --- */

@keyframes slideFromBottomFadeIn {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-icon {
    opacity: 0; /* Hidden initially */
    transform: translateY(40px);
}

.animate-icon.in-view {
    animation: slideFromBottomFadeIn 1s ease-in-out forwards;
}

/* Background lines styling & layout */
.services-separator-bg-lines {
    position: absolute;
    top: 0; /* Top offset removed */
    left: 0;
    width: 100%;
    height: 400px; /* Exact height matching SVG viewBox to prevent vertical stretch */
    z-index: 1;
    pointer-events: none;
}

.services-separator-bg-lines svg {
    width: 100%;
    height: 100%;
    display: block;
}

.services-separator-content {
    position: relative;
    z-index: 2; /* Keep text content readable and in front of background lines */
}

/* Draw animation for background lines starting from outer edges */
.services-separator-bg-lines path {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    transition: stroke-dashoffset 3.8s cubic-bezier(0.25, 1, 0.2, 1);
}

/* Trigger draw animation when the parent section receives the .in-view class */
.services-separator-section.in-view .services-separator-bg-lines path {
    stroke-dashoffset: 0;
}

/* --- Responsive & Mobile Adaptability --- */

@media (max-width: 768px) {
    .services-separator-section {
        padding: 60px 0 70px; /* Reduced vertical padding for smaller viewports */
        scroll-margin-top: 110px; /* Mobile/tablet navbar height */
    }

    .services-separator-content {
        gap: 40px; /* Closer item spacing on mobile */
    }

    .services-separator-title {
        font-size: 32px; /* Smaller font on mobile */
        letter-spacing: -1.5px;
    }

    .services-separator-subtitle-title {
        font-size: 24px;
        letter-spacing: -1px;
    }

    .services-separator-subtitle-desc {
        font-size: 18px;
        line-height: 1.35;
        letter-spacing: -0.8px;
    }

    .services-separator-bg-lines {
        opacity: 0.55;
    }
}
