/* ==================================================
   PÁGINA SOBRE
================================================== */


/* ==================================================
   1. HERO INTERNO — SOBRE
================================================== */

.page-hero {
    position: relative;

    min-height: 265px;

    display: flex;
    align-items: center;

    background-image: url('../img/about-banner.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 42%;

    overflow: hidden;
}


/* Degradê sobre a imagem */

.page-hero::before {
    content: '';

    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(244, 242, 237, 0.96) 0%,
            rgba(239, 235, 226, 0.91) 31%,
            rgba(221, 211, 192, 0.76) 59%,
            rgba(176, 149, 108, 0.61) 100%
        );

    pointer-events: none;
}


/* Conteúdo do hero */

.page-hero-content {
    position: relative;
    z-index: 2;

    width: min(100% - 40px, var(--container));
    max-width: var(--container);

    margin: 0 auto;
}


/* Título do hero */

.page-hero h1 {
    margin: 0;

    font-family: var(--fonte-titulo);
    font-size: clamp(2.8rem, 3.3vw, 3.8rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.035em;
    text-transform: uppercase;

    color: var(--preto-elegante);
}


/* ==================================================
   HERO — RESPONSIVO
================================================== */

@media (max-width: 1024px) {

    .page-hero {
        min-height: 240px;
        background-position: 55% 40%;
    }

}

@media (max-width: 768px) {

    .page-hero {
        min-height: 210px;
        padding: 0;

        background-position: 60% center;
    }

    .page-hero-content {
        width: min(100% - 28px, var(--container));
    }

    .page-hero::before {
        background:
            linear-gradient(
                90deg,
                rgba(244, 242, 237, 0.97) 0%,
                rgba(237, 230, 217, 0.88) 58%,
                rgba(185, 157, 116, 0.60) 100%
            );
    }

    .page-hero h1 {
        font-size: clamp(2.5rem, 11vw, 3.3rem);
    }

}

@media (max-width: 480px) {

    .page-hero {
        min-height: 190px;
        background-position: 62% center;
    }

    .page-hero h1 {
        font-size: 2.5rem;
    }

}


/* ==================================================
   2. HISTÓRIA
================================================== */

.about-story {
    padding: 86px 0 138px;

    background: var(--bege-fundo);
}

.about-story .container {
    width: min(100% - 40px, 1100px);
    margin: 0 auto;
}


/* Estrutura principal */

.about-story-grid {
    display: grid;
    grid-template-columns: 512px minmax(0, 1fr);
    align-items: center;
    gap: 42px;
}


/* ==================================================
   HISTÓRIA — IMAGEM
================================================== */

.about-story-image {
    position: relative;

    width: 100%;
    margin-bottom: 54px;
}

.about-story-image img {
    width: 100%;
    height: 342px;

    display: block;

    object-fit: cover;
    object-position: center 42%;

    border-radius: 18px;

    box-shadow: none;
}


/* ==================================================
   HISTÓRIA — CARD SOBREPOSTO
================================================== */

.about-floating-card {
    position: absolute;
    right: 30px;
    bottom: -68px;

    width: 370px;
    max-width: calc(100% - 54px);

    padding: 20px 22px 18px 36px;

    background: rgba(248, 248, 248, 0.97);

    border: 0;
    border-radius: 0 0 18px 18px;

    box-shadow:
        0 3px 7px rgba(28, 26, 23, 0.09),
        0 12px 25px rgba(28, 26, 23, 0.07);
}


/* Linha dourada interna */

.about-floating-card::before {
    content: '';

    position: absolute;
    left: 18px;
    top: 19px;
    bottom: 41px;

    width: 3px;

    background: var(--dourado);
}

.about-floating-card p {
    margin: 0 0 13px;

    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.55;
    letter-spacing: 0;
    text-transform: uppercase;

    color: var(--preto-elegante);
}

.about-floating-card span {
    display: block;

    font-size: 0.82rem;
    line-height: 1.4;

    color: var(--dourado-escuro);
}


/* ==================================================
   HISTÓRIA — TEXTO
================================================== */

.about-story-text {
    align-self: center;

    padding-bottom: 4px;
}

.about-story-text .section-label {
    display: inline-block;

    margin-bottom: 18px;

    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;

    color: var(--dourado-escuro);
}

.about-story-text h2 {
    max-width: 540px;
    margin: 0 0 21px;

    font-family: var(--fonte-titulo);
    font-size: clamp(2.35rem, 2.7vw, 3.05rem);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.025em;
    text-transform: uppercase;

    color: var(--preto-elegante);
}

.about-story-text > p {
    max-width: 530px;
    margin: 0 0 15px;

    font-size: 0.89rem;
    line-height: 1.62;

    color: var(--preto-elegante);
}

.about-story-text > p:last-of-type {
    margin-bottom: 0;
}


/* ==================================================
   HISTÓRIA — VISÃO E MISSÃO
================================================== */

.about-vision-mission {
    position: relative;

    width: 100%;
    margin-top: 34px;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
}


/* Linha inferior */

.about-vision-mission::after {
    content: '';

    position: absolute;
    left: 0;
    right: 0;
    bottom: -26px;

    height: 1px;

    background: rgba(28, 26, 23, 0.13);
}


/* Item */

.about-purpose-item {
    min-width: 0;
}


/* Ícone */

.about-purpose-icon {
    width: 68px;
    height: 68px;
    margin-bottom: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ddb96f;
    border-radius: 20px;

    color: var(--preto-elegante);
    font-size: 1.55rem;
}


/* Título */

.about-purpose-item h3 {
    margin: 0 0 7px;

    font-family: var(--fonte-texto);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.3;
    text-transform: uppercase;

    color: var(--preto-elegante);
}


/* Texto */

.about-purpose-item p {
    width: 100%;
    max-width: 245px;
    margin: 0;

    font-size: 0.86rem;
    line-height: 1.62;

    color: var(--preto-elegante);
}


/* ==================================================
   HISTÓRIA — RESPONSIVO
================================================== */

@media (max-width: 1024px) {

    .about-story {
        padding: 76px 0 108px;
    }

    .about-story-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 34px;
    }

    .about-story-image img {
        height: 330px;
    }

    .about-floating-card {
        right: 18px;

        width: 340px;
    }

    .about-story-text h2 {
        font-size: clamp(2.2rem, 4vw, 2.8rem);
    }

    .about-vision-mission {
        gap: 24px;
    }

    .about-purpose-icon {
        width: 62px;
        height: 62px;

        border-radius: 18px;
    }

}

@media (max-width: 768px) {

    .about-story {
        padding: 62px 0 84px;
    }

    .about-story .container {
        width: min(100% - 28px, 1100px);
    }

    .about-story-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .about-story-image {
        margin-bottom: 48px;
    }

    .about-story-image img {
        height: 390px;

        border-radius: 18px;
    }

    .about-floating-card {
        right: 14px;
        bottom: -58px;

        width: calc(100% - 28px);
        max-width: none;

        padding: 19px 20px 17px 34px;
    }

    .about-story-text h2 {
        max-width: 520px;

        font-size: clamp(2.2rem, 10vw, 3rem);
    }

    .about-story-text > p {
        max-width: none;
    }

    .about-vision-mission {
        grid-template-columns: 1fr;
        gap: 30px;

        margin-top: 30px;
    }

    .about-purpose-item p {
        max-width: none;
    }

    .about-vision-mission::after {
        bottom: -22px;
    }

}

@media (max-width: 480px) {

    .about-story-image img {
        height: 330px;
    }

    .about-floating-card p {
        font-size: 0.69rem;
    }

    .about-floating-card span {
        font-size: 0.76rem;
    }

}


/* ==================================================
   3. NOSSA ESSÊNCIA
================================================== */

.about-essence {
    padding: 108px 0 116px;

    background: var(--bege-fundo);
}

.about-essence .container {
    width: min(100% - 40px, 1100px);
    margin: 0 auto;
}


/* ==================================================
   ESSÊNCIA — PAINEL PRINCIPAL
================================================== */

.essence-panel {
    min-height: 370px;

    display: grid;
    grid-template-columns: 1fr 0.93fr;

    overflow: hidden;
}


/* ==================================================
   ESSÊNCIA — LADO ESQUERDO
================================================== */

.essence-panel-left {
    padding: 66px 68px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background: #efefef;
}

.essence-panel-left h2 {
    margin: 0;

    font-family: var(--fonte-titulo);
    font-size: clamp(2.2rem, 2.65vw, 3rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.035em;
    text-transform: uppercase;

    color: var(--preto-elegante);
}


/* Linha decorativa */

.essence-line {
    display: block;

    width: 64px;
    height: 2px;
    margin: 38px 0 32px;

    background: var(--preto-elegante);
}


/* Frases */

.essence-highlights {
    display: flex;
    flex-direction: column;
    gap: 19px;
}

.essence-highlights p {
    margin: 0;

    font-family: var(--fonte-texto);
    font-size: 1.12rem;
    font-weight: 400;
    line-height: 1.35;
    text-transform: uppercase;

    color: var(--preto-elegante);
}


/* ==================================================
   ESSÊNCIA — LADO DIREITO
================================================== */

.essence-panel-right {
    padding: 66px 68px;

    display: flex;
    align-items: center;

    background: #c89124;
}

.essence-panel-right p {
    max-width: 420px;
    margin: 0;

    font-size: 0.94rem;
    font-weight: 400;
    line-height: 1.65;

    color: var(--preto-elegante);
}


/* ==================================================
   ESSÊNCIA — RESPONSIVO
================================================== */

@media (max-width: 900px) {

    .about-essence {
        padding: 84px 0 92px;
    }

    .essence-panel {
        min-height: 340px;

        grid-template-columns: 1fr 0.9fr;
    }

    .essence-panel-left,
    .essence-panel-right {
        padding: 52px 42px;
    }

    .essence-highlights p {
        font-size: 1rem;
    }

}

@media (max-width: 680px) {

    .about-essence {
        padding: 68px 0 76px;
    }

    .about-essence .container {
        width: min(100% - 28px, 1100px);
    }

    .essence-panel {
        min-height: auto;

        grid-template-columns: 1fr;
    }

    .essence-panel-left,
    .essence-panel-right {
        padding: 46px 30px;
    }

    .essence-panel-left h2 {
        font-size: clamp(2.15rem, 11vw, 2.8rem);
    }

    .essence-line {
        margin: 30px 0 28px;
    }

    .essence-highlights {
        gap: 16px;
    }

    .essence-highlights p {
        font-size: 0.96rem;
    }

    .essence-panel-right p {
        max-width: none;

        font-size: 0.91rem;
    }

}


/* ==================================================
   4. NOSSOS SERVIÇOS
================================================== */

.services-section {
    padding: 108px 0 116px;

    background: var(--bege-fundo);

    overflow: hidden;
}

.services-section .container {
    width: min(100% - 40px, 1100px);
    margin: 0 auto;
}


/* ==================================================
   SERVIÇOS — CABEÇALHO
================================================== */

.services-heading {
    max-width: 650px;
    margin: 0 auto 48px;

    text-align: center;
}

.services-heading h2 {
    margin: 0 0 20px;

    font-family: var(--fonte-titulo);
    font-size: clamp(2.35rem, 2.7vw, 3.15rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.025em;
    text-transform: uppercase;

    color: var(--preto-elegante);
}

.services-heading p {
    max-width: 640px;
    margin: 0 auto;

    font-size: 0.9rem;
    line-height: 1.65;

    color: var(--preto-elegante);
}


/* ==================================================
   SERVIÇOS — GRADE
================================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}


/* ==================================================
   SERVIÇOS — CARD
================================================== */

.service-card {
    min-height: 282px;

    padding: 46px 24px 34px;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;

    background: #eeeeee;
    border-radius: 25px;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        background 0.35s ease;
}

.service-card:hover {
    transform: translateY(-7px);

    background: #f3f3f3;

    box-shadow:
        0 16px 35px rgba(28, 26, 23, 0.08);
}


/* ==================================================
   SERVIÇOS — ÍCONE
================================================== */

.service-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--dourado);
    font-size: 2rem;
}

.service-icon i {
    line-height: 1;
}


/* Ícone quadriculado do segundo card */

.service-card:nth-child(2) .service-icon {
    position: relative;
}

.service-card:nth-child(2) .service-icon i {
    display: none;
}

.service-card:nth-child(2) .service-icon::before {
    content: '';

    width: 38px;
    height: 38px;

    background:
        linear-gradient(
            to right,
            transparent 47%,
            var(--dourado) 47%,
            var(--dourado) 53%,
            transparent 53%
        ),
        linear-gradient(
            to bottom,
            transparent 47%,
            var(--dourado) 47%,
            var(--dourado) 53%,
            transparent 53%
        );

    border: 2px solid var(--dourado);
}


/* ==================================================
   SERVIÇOS — TEXTOS
================================================== */

.service-card h3 {
    min-height: 62px;
    margin: 0 0 16px;

    font-family: var(--fonte-titulo);
    font-size: 1.85rem;
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.02em;
    text-transform: uppercase;

    color: var(--preto-elegante);
}

.service-card p {
    max-width: 210px;
    margin: 0;

    font-size: 0.88rem;
    line-height: 1.6;

    color: var(--preto-elegante);
}


/* ==================================================
   SERVIÇOS — ANIMAÇÃO DOS CARDS
================================================== */

.services-container.reveal-up .service-card {
    opacity: 0;
    transform: translateY(35px);

    transition:
        opacity 0.65s ease,
        transform 0.65s ease,
        box-shadow 0.35s ease,
        background 0.35s ease;
}

.services-container.reveal-up.visible .service-card {
    opacity: 1;
    transform: translateY(0);
}

.services-container.reveal-up.visible .service-card:nth-child(1) {
    transition-delay: 0.12s;
}

.services-container.reveal-up.visible .service-card:nth-child(2) {
    transition-delay: 0.22s;
}

.services-container.reveal-up.visible .service-card:nth-child(3) {
    transition-delay: 0.32s;
}

.services-container.reveal-up.visible .service-card:nth-child(4) {
    transition-delay: 0.42s;
}


/* ==================================================
   SERVIÇOS — RESPONSIVO
================================================== */

@media (max-width: 1024px) {

    .services-section {
        padding: 90px 0 98px;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .service-card {
        min-height: 270px;
    }

}

@media (max-width: 680px) {

    .services-section {
        padding: 68px 0 76px;
    }

    .services-section .container {
        width: min(100% - 28px, 1100px);
    }

    .services-heading {
        margin-bottom: 36px;
    }

    .services-heading h2 {
        font-size: clamp(2.25rem, 11vw, 3rem);
    }

    .services-heading p {
        font-size: 0.87rem;
    }

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

    .service-card {
        min-height: auto;

        padding: 38px 24px 34px;
    }

}


/* ==================================================
   5. ANIMAÇÕES GERAIS
================================================== */

.reveal-up {
    opacity: 0;
    transform: translateY(75px);

    transition:
        opacity 0.85s ease,
        transform 0.85s cubic-bezier(.2, .7, .2, 1);
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ==================================================
   6. ACESSIBILIDADE
================================================== */

@media (prefers-reduced-motion: reduce) {

    .reveal-up,
    .services-container.reveal-up,
    .services-container.reveal-up .service-card {
        opacity: 1;
        transform: none;

        transition: none;
    }

}