/**
 * LocalMax — Landing pages de Segmentos
 */

/* Hero
-------------------------------------------------------------- */
.lm-segment-hero {
    padding-block: clamp(9rem, 15vw, 12rem) clamp(4.5rem, 9vw, 7rem);
    color: rgb(255 255 255 / 72%);
    background-color: var(--lm-color-dark);
}

.lm-segment-hero .lm-eyebrow {
    color: var(--lm-color-primary);
}

.lm-segment-hero__title {
    max-width: 60rem;
    color: var(--lm-color-white);
    font-size: clamp(2.75rem, 6.5vw, 5.5rem);
}

.lm-segment-hero__lead {
    max-width: 47rem;
    font-size: clamp(1rem, 1.7vw, 1.25rem);
    line-height: 1.7;
}

.lm-segment-hero__lead > *:last-child {
    margin-bottom: 0;
}

.lm-segment-hero__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: var(--lm-radius-lg);
    box-shadow: var(--lm-shadow-lg);
}

.lm-segment-hero__image::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(
        180deg,
        transparent 55%,
        rgb(7 204 97 / 16%)
    );
    pointer-events: none;
}

.lm-segment-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lm-segment-highlight {
    max-width: 32rem;
    padding: 1rem 1.25rem;
    background-color: rgb(255 255 255 / 7%);
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: var(--lm-radius-md);
}

.lm-segment-highlight strong {
    color: var(--lm-color-primary);
    font-family: var(--lm-font-heading);
    font-size: clamp(1.75rem, 4vw, 3rem);
    letter-spacing: -0.045em;
    line-height: 1;
}

.lm-segment-highlight span {
    font-size: var(--lm-font-size-sm);
    line-height: 1.4;
}

.lm-segment-breadcrumb-wrap {
    padding-top: clamp(2.5rem, 5vw, 4rem);
}

/* Overview
-------------------------------------------------------------- */
.lm-segment-overview__image {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: var(--lm-radius-lg);
    box-shadow: var(--lm-shadow-md);
}

.lm-segment-overview__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Challenges
-------------------------------------------------------------- */
.lm-segment-card {
    position: relative;
    overflow: hidden;
    padding: clamp(1.5rem, 4vw, 2.25rem);
    background-color: var(--lm-color-white);
    border: 1px solid var(--lm-color-border);
    border-radius: var(--lm-radius-md);
    box-shadow: var(--lm-shadow-sm);
}

.lm-segment-card::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    content: "";
    background-color: var(--lm-color-primary);
}

.lm-segment-card__number {
    display: block;
    margin-bottom: 2rem;
    color: var(--lm-color-primary-hover);
    font-size: var(--lm-font-size-xs);
    font-weight: 800;
    letter-spacing: 0.1em;
}

.lm-segment-card h3 {
    margin-bottom: 1rem;
    font-size: clamp(1.35rem, 2.3vw, 1.75rem);
}

.lm-segment-card div > *:last-child {
    margin-bottom: 0;
}

/* Solution
-------------------------------------------------------------- */
.lm-segment-solution {
    position: relative;
    overflow: hidden;
}

.lm-segment-solution::before {
    position: absolute;
    top: -12rem;
    right: -12rem;
    width: 28rem;
    height: 28rem;
    content: "";
    background-color: var(--lm-color-primary);
    border-radius: 50%;
    opacity: 0.06;
    pointer-events: none;
}

.lm-segment-solution__intro {
    color: rgb(255 255 255 / 72%);
    font-size: var(--lm-font-size-lg);
    line-height: 1.7;
}

.lm-segment-solution__intro > *:last-child,
.lm-segment-application div > *:last-child {
    margin-bottom: 0;
}

.lm-segment-applications {
    border-top: 1px solid rgb(255 255 255 / 14%);
}

.lm-segment-application {
    display: grid;
    padding-block: 1.5rem;
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 1rem;
    border-bottom: 1px solid rgb(255 255 255 / 14%);
}

.lm-segment-application > span {
    color: var(--lm-color-primary);
    font-size: 1.35rem;
    font-weight: 800;
}

.lm-segment-application h3 {
    margin-bottom: 0.5rem;
    color: var(--lm-color-white);
    font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.lm-segment-application div {
    color: rgb(255 255 255 / 68%);
}

/* Related content
-------------------------------------------------------------- */
.lm-text-link {
    color: var(--lm-color-primary-hover);
    font-weight: 800;
    text-decoration: none;
}

.lm-text-link:hover,
.lm-text-link:focus-visible {
    color: var(--lm-color-ink);
}

/* FAQ
-------------------------------------------------------------- */
.lm-segment-faq__list {
    border-top: 1px solid var(--lm-color-border);
}

.lm-segment-faq__item {
    border-bottom: 1px solid var(--lm-color-border);
}

.lm-segment-faq__item summary {
    display: flex;
    padding-block: 1.5rem;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    color: var(--lm-color-ink);
    cursor: pointer;
    font-family: var(--lm-font-heading);
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    font-weight: 700;
    list-style: none;
}

.lm-segment-faq__item summary::-webkit-details-marker {
    display: none;
}

.lm-segment-faq__item summary span {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    align-items: center;
    justify-content: center;
    color: var(--lm-color-ink);
    background-color: var(--lm-color-primary);
    border-radius: 50%;
    transition: transform var(--lm-transition);
}

.lm-segment-faq__item[open] summary span {
    transform: rotate(45deg);
}

.lm-segment-faq__item > div {
    padding: 0 3.5rem 1.5rem 0;
}

.lm-segment-faq__item > div > *:first-child {
    margin-top: 0;
}

/* CTA
-------------------------------------------------------------- */
.lm-segment-cta-section {
    padding-block: 0 var(--lm-section-space);
}

.lm-segment-cta {
    padding: clamp(2.25rem, 7vw, 5rem);
    color: rgb(255 255 255 / 72%);
    background-color: var(--lm-color-dark);
    border-radius: var(--lm-radius-lg);
}

.lm-segment-cta .lm-eyebrow {
    color: var(--lm-color-primary);
}

.lm-segment-cta h2 {
    max-width: 54rem;
    margin-inline: auto;
    color: var(--lm-color-white);
    font-size: clamp(2.1rem, 5vw, 4.25rem);
}

.lm-segment-cta__text {
    max-width: 42rem;
    font-size: var(--lm-font-size-lg);
}

.lm-segment-cta__text > *:last-child {
    margin-bottom: 0;
}

.lm-segment-page {
    overflow-x: clip;
}

@media (max-width: 991.98px) {
    .lm-segment-hero__image {
        max-height: 35rem;
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 575.98px) {
    .lm-segment-hero {
        padding-top: 8rem;
    }

    .lm-segment-highlight {
        align-items: flex-start !important;
        flex-direction: column;
    }

    .lm-segment-faq__item > div {
        padding-right: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lm-segment-faq__item summary span {
        transition: none;
    }
}
