/* ==========================================
   HERO
========================================== */

.about-hero {
    background-image: url("../images/about/quem-somos-agencia-funeraria-gaspar-adao.webp");
}

.nav__link.active {
    color: var(--color-primary);
}

.about-story__mobile-heading {
    display: none;
}
/* ==========================================
   HISTÓRIA
========================================== */

.about-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.about-story__image img {
    width: 100%;
    border-radius: 22px;
    display: block;
}

.about-story__content h2 {
    margin: var(--space-sm) 0 var(--space-lg);
    color: var(--color-dark);
}

.about-story__content p {
    margin-bottom: var(--space-md);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text);
}

/* ==========================================
   MISSÃO
========================================== */

.about-mission {
    max-width: 900px;
    margin: auto;
    text-align: center;
}

.about-mission h2 {
    margin: var(--space-sm) 0 var(--space-lg);
    color: var(--color-dark);
}

.about-mission p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text);
}

/* ==========================================
   VALORES
========================================== */

.about-values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.about-value {
    padding: var(--space-xl);
    border: 1px solid #d8d8d8;
    border-radius: 18px;
    background: var(--color-white);
    transition: 0.35s ease;
}

.about-value:hover {
    transform: translateY(-6px);
    border-color: var(--color-primary);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.about-value img {
    width: 42px;
    margin-bottom: var(--space-md);
    transition: transform 0.35s ease;
}

.about-value:hover img {
    transform: translateY(-4px) scale(1.05);
}

.about-value h3 {
    margin-bottom: var(--space-sm);
    color: var(--color-dark);
}

.about-value p {
    margin: 0;
    line-height: 1.8;
    color: var(--color-text);
}

/* ==========================================
   PERCURSO
========================================== */

.journey {
    position: relative;
    max-width: 900px;
    margin: var(--space-2xl) auto 0;
}

.journey__line {
    position: absolute;
    left: 22px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #d9d9d9;
}

.journey__item {
    position: relative;
    display: flex;
    gap: var(--space-lg);
    padding-bottom: var(--space-2xl);
}

.journey__item:last-child {
    padding-bottom: 0;
}

.journey__dot {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--color-primary);
    position: relative;
}

.journey__dot::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-primary);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.journey__item:hover .journey__dot {
    transform: scale(1.08);
    box-shadow: 0 0 0 8px rgba(220, 184, 88, 0.15);
}

.journey__content {
    flex: 1;
    padding-top: 4px;
}

/* Pequeno título */

.journey__year {
    display: inline-block;
    margin-bottom: 10px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-primary);
}

/* Título */

.journey__title {
    margin-bottom: 18px;
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--color-dark);
}

/* Texto */

.journey__text {
    color: var(--color-text);
    line-height: 1.8;
    margin: 0;
}

/* ==========================================
   PROMESSA
========================================== */

.about-promise {
    padding: var(--space-3xl) 0;
    background: var(--color-white);
}

.about-promise__content {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.about-promise__content h2 {
    margin: var(--space-sm) 0 var(--space-lg);
    color: var(--color-dark);
}

.about-promise__content p {
    max-width: 720px;
    margin: 0 auto var(--space-sm);
    color: var(--color-text);
    line-height: 1.8;
}

/* ---------- Fundador ---------- */

.about-promise__founder {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: var(--space-3xl);
}

/* Linha */

.about-promise__line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    position: relative;
    z-index: 1;
}

.about-promise__line span {
    width: 320px;
    height: 1px;
    background: #dcb858;
    opacity: 0.75;
}

.about-promise__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
}

/* Fotografia */

.about-promise__founder img {
    width: 340px;
    height: auto;
    display: block;
}

/* Assinatura */

.about-promise__signature {
    margin-top: var(--space-lg);
    text-align: center;
}

.about-promise__signature h3 {
    margin-bottom: var(--space-xs);
    color: var(--color-dark);
}

.about-promise__signature p {
    margin: 0;
    color: var(--color-text);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* ==========================================
   CTA
========================================== */

.about-cta {
    padding: var(--space-3xl) 0;
    background: #f7f4ee;
}

.about-cta__box {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-cta__box h2 {
    margin: var(--space-md) 0 var(--space-lg);
    color: var(--color-dark);
}

.about-cta__box p {
    max-width: 720px;
    margin: 0 auto;
    color: var(--color-text);
    line-height: 1.8;
}

.about-cta__buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
    flex-wrap: wrap;
}

/* ==========================================
   RESPONSIVE — QUEM SOMOS
========================================== */


/* ---------- TABLET ---------- */

@media (max-width: 1024px) {

    .about-hero {
        background-position: center center;
    }

    .about-story {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-story__image {
        max-width: 700px;
        margin: 0 auto;
    }

    .about-story__content {
        max-width: 700px;
        margin: 0 auto;
    }

    .about-values {
        gap: 20px;
    }

    .journey {
        max-width: 760px;
    }

    .about-promise__founder img {
        width: 300px;
    }

}


/* ---------- MOBILE ---------- */

@media (max-width: 690px) {

/* ---------- HERO ---------- */

.about-hero {
    height: auto;
    min-height: 620px;
    background-position: center center;
}

.about-hero .page-hero__overlay {
    height: auto;
    min-height: 620px;
    align-items: flex-start;
}

.about-hero .page-hero__content {
    max-width: 100%;
    padding-top: 165px;
    padding-bottom: 65px;
}

.about-hero .breadcrumb {
    margin-bottom: 24px;
    font-size: 0.85rem;
}

.about-hero .section-tag {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
}

.about-hero .page-hero__content h1 {
    margin-bottom: 20px;
}

.about-hero .page-hero__content p {
    max-width: 100%;
    font-size: 0.98rem;
    line-height: 1.7;
}

    /* ---------- HISTÓRIA ---------- */

    .about-story {
        display: flex;
        flex-direction: column;
        gap: 0px;
    }

/* ---------- FOTO ---------- */

.about-story__image {
    width: 100%;
    max-width: 100%;
    margin-bottom: 42px;
}

.about-story__image img {
    width: 100%;
    border-radius: 18px;
    display: block;
}

/* ---------- CONTEÚDO ---------- */

.about-story__content {
    width: 100%;
    max-width: 100%;
}

/* Esconde a tag duplicada no conteúdo */

.about-story__content > .section-tag {
    display: none;
}

.about-story__content h2 {
    margin: 0 0 20px;
}

.about-story__content p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ---------- TÍTULO MOBILE DA SECÇÃO ---------- */

.about-story__mobile-heading {
    display: block;
    width: 100%;
    margin-bottom: 42px;
    text-align: center;
}

.about-story__mobile-heading .section-tag {
    display: block;
    margin-bottom: 18px;
    text-align: center;
}

.about-story__mobile-heading .section-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}    

    /* ---------- MISSÃO ---------- */

    .about-mission {
        max-width: 100%;
    }

    .about-mission h2 {
        margin: 14px 0 20px;
    }

    .about-mission p {
        font-size: 0.95rem;
        line-height: 1.7;
    }


    /* ---------- VALORES ---------- */

    .about-values {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 45px;
    }

    .about-value {
        padding: 28px 24px;
        border-radius: 16px;
    }

    .about-value img {
        width: 40px;
        margin-bottom: 18px;
    }

    .about-value h3 {
        margin-bottom: 12px;
    }

    .about-value p {
        font-size: 0.95rem;
        line-height: 1.7;
    }


    /* ---------- PERCURSO ---------- */

    .journey {
        max-width: 100%;
        margin-top: 45px;
    }

    .journey__line {
        left: 19px;
    }

    .journey__item {
        gap: 22px;
        padding-bottom: 42px;
    }

    .journey__dot {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .journey__dot::after {
        width: 10px;
        height: 10px;
    }

    .journey__content {
        padding-top: 1px;
    }

    .journey__year {
        margin-bottom: 8px;
        font-size: 0.74rem;
        letter-spacing: 1.5px;
    }

    .journey__title {
        margin-bottom: 12px;
        font-size: 1.25rem;
    }

    .journey__text {
        font-size: 0.95rem;
        line-height: 1.7;
    }


    /* ---------- PROMESSA ---------- */

    .about-promise {
        padding: 80px 0;
    }

    .about-promise__content {
        max-width: 100%;
    }

    .about-promise__content h2 {
        margin: 14px 0 20px;
    }

    .about-promise__content p {
        max-width: 100%;
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .about-promise__founder {
        margin-top: 60px;
    }

    .about-promise__founder img {
        width: min(280px, 80%);
    }

    .about-promise__line span {
        width: min(220px, 65vw);
    }

    .about-promise__signature {
        margin-top: 18px;
    }


    /* ---------- CTA ---------- */

    .about-cta {
        padding: 80px 0;
    }

    .about-cta__box {
        max-width: 100%;
    }

    .about-cta__box h2 {
        margin: 14px 0 20px;
    }

    .about-cta__box p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .about-cta__buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 32px;
    }

    .about-cta__buttons .btn {
        width: auto;
    }

}


/* ---------- MOBILE PEQUENO ---------- */

@media (max-width: 480px) {

    .about-hero {
    height: 600px;
    }
    
    .about-hero .page-hero__content {
        padding-top: 90px;
        padding-bottom: 45px;
    }

    .about-story {
        gap: 32px;
    }

    .about-value {
        padding: 25px 21px;
    }

    .journey__item {
        gap: 18px;
    }

    .journey__dot {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }

    .journey__line {
        left: 18px;
    }

    .journey__title {
        font-size: 1.18rem;
    }

    .about-promise {
        padding: 70px 0;
    }

    .about-promise__founder img {
        width: 250px;
    }

    .about-promise__line span {
        width: 180px;
    }

    .about-cta {
        padding: 70px 0;
    }

}