/* ========================================
   PÁGINA SOBRE - SEBO O ALFARRÁBIO
   CSS Melhorado e Profissional
   ======================================== */

/* ========================================
   SEÇÃO SOBRE (HOME)
   ======================================== */

.sobre {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: var(--sobre-bg);
    /* linear-gradient(135deg, #ffffff, #fdfbf7) mapped to var */
    padding: 40px 30px;
    border-radius: 16px;
    margin: 40px auto;
    max-width: 1200px;
    box-shadow: 0 8px 30px var(--shadow-light);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.sobre::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--border-color), transparent);
    pointer-events: none;
}

.img-sobre {
    width: 420px;
    height: auto;
    border-radius: 16px;
    margin-left: 30px;
    box-shadow: 0 10px 40px var(--shadow-medium);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    object-fit: cover;
}

.img-sobre:hover {
    transform: scale(1.03) rotate(1deg);
    box-shadow: 0 15px 50px var(--shadow-card);
}

.texto-sobre {
    flex: 1;
    font-family: 'Merriweather', serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: justify;
    padding: 20px 40px;
    max-width: 700px;
    position: relative;
}

.texto-sobre p {
    margin-bottom: 1.2em;
}

.titulo-sobre {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Merriweather', serif;
    color: var(--accent-warm);
    text-align: center;
    margin: 130px 0 30px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.titulo-sobre::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-warm), transparent);
    border-radius: 2px;
}

/* ========================================
   PÁGINA SOBRE - SEÇÃO PRINCIPAL
   ======================================== */

.sobre-pag {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: var(--bg-card);
    /* linear-gradient mapped to bg-card */
    padding: 50px 40px;
    border-radius: 20px;
    margin: 40px auto;
    max-width: 1200px;
    box-shadow: 0 10px 40px var(--shadow-medium);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: background 0.4s ease;
}

.sobre-pag::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--border-color) 0%, transparent 70%);
    pointer-events: none;
}

.img-sobre-pag {
    width: 450px;
    height: auto;
    border-radius: 20px;
    margin-right: 50px;
    box-shadow: 0 15px 50px var(--shadow-medium);
    transition: all 0.4s ease;
    object-fit: cover;
    border: 3px solid var(--border-color);
}

.img-sobre-pag:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px var(--shadow-card);
}

.texto-sobre-pag {
    flex: 1;
    font-family: 'Merriweather', serif;
    font-weight: 400;
    font-size: 19px;
    line-height: 1.9;
    color: var(--text-secondary);
    text-align: justify;
    padding: 20px 0;
    max-width: 650px;
}

.texto-sobre-pag p {
    margin-bottom: 1.5em;
    text-indent: 2em;
}

.titulo-pag {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Merriweather', serif;
    color: var(--accent-warm);
    text-align: center;
    margin: 50px 0 30px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.titulo-pag::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-warm), transparent);
    border-radius: 2px;
}

/* ========================================
   SEÇÃO EQUIPE
   ======================================== */

.equipe {
    background: var(--bg-secondary);
    /* linear-gradient mapped to bg-secondary */
    padding: 60px 20px;
    border-radius: 20px;
    margin: 50px auto;
    box-shadow: 0 10px 40px var(--shadow-medium);
    position: relative;
    overflow: hidden;
    transition: background 0.4s ease;
}

.equipe::before {
    content: '📚';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 80px;
    opacity: 0.1;
}

.equipe-pag {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border-radius: 16px;
    margin: 0 auto;
    max-width: 1000px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    box-shadow: 0 5px 20px var(--shadow-light);
    gap: 50px;
}

.img-equipe-pag {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 15px 50px var(--shadow-medium);
    border: 5px solid var(--bg-card);
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.img-equipe-pag:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 20px 60px var(--shadow-card);
}

.texto-equipe-pag {
    flex: 1;
    font-family: 'Merriweather', serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: center;
    padding: 30px;
    max-width: 500px;
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 5px 20px var(--shadow-light);
    position: relative;
}

.texto-equipe-pag::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 60px;
    color: var(--border-accent);
    font-family: Georgia, serif;
}

.texto-equipe-pag p {
    font-style: italic;
    color: var(--text-secondary);
}

/* ========================================
   CARROSSEL DE IMAGENS
   ======================================== */

.carrossel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin: 60px 0;
    background: var(--bg-secondary);
    padding: 50px 0;
    border-radius: 20px;
    box-shadow: inset 0 5px 20px var(--shadow-light);
    transition: background 0.4s ease;
}

.carrossel-container .titulo-pag {
    margin-top: 0;
    margin-bottom: 40px;
}

.carrossel {
    display: flex;
    animation: slide 30s linear infinite;
    gap: 20px;
}

.carrossel:hover {
    animation-play-state: paused;
}

.carrossel img {
    width: 600px;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 30px var(--shadow-medium);
    transition: all 0.3s ease;
    flex-shrink: 0;
    border: 3px solid var(--bg-card);
}

.carrossel img:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 15px 50px var(--shadow-card);
    z-index: 10;
}

/* Animação infinita */
@keyframes slide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ========================================
   ELEMENTOS DECORATIVOS
   ======================================== */

.sobre-pag::after,
.equipe::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--shadow-light) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}


/* ========================================
   MELHORIAS DE ACESSIBILIDADE
   ======================================== */

/* Redução de movimento */
@media (prefers-reduced-motion: reduce) {
    .carrossel {
        animation: none;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus para navegação por teclado */
.carrossel img:focus {
    outline: 3px solid var(--accent);
    outline-offset: 5px;
}

/* ========================================
   ANIMAÇÕES DE ENTRADA
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sobre,
.sobre-pag,
.equipe {
    animation: fadeInUp 0.8s ease-out;
}

/* ========================================
   HOVER EFFECTS EXTRAS
   ======================================== */

.texto-sobre-pag:hover,
.texto-equipe-pag:hover {
    transform: translateY(-3px);
    transition: transform 0.3s ease;
}

/* ========================================
   MISSÃO & VISÃO - DUO CARDS
   ======================================== */

.missao-visao {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.mv-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px var(--shadow-medium);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.4s ease,
        border-color 0.4s ease;
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
}

.mv-card.is-visible {
    animation: mvReveal 0.8s ease-out forwards;
}

.mv-card.is-visible:nth-child(2) {
    animation-delay: 0.2s;
}

.mv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent), var(--accent-gold), var(--accent-warm));
    border-radius: 20px 20px 0 0;
}

.mv-card::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--border-accent) 0%, transparent 70%);
    pointer-events: none;
    transition: opacity 0.4s ease;
    opacity: 0.5;
}

.mv-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px var(--shadow-card);
    border-color: var(--border-accent);
}

.mv-card:hover::after {
    opacity: 1;
}

.mv-card__icon-wrap {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-gold));
    color: var(--text-on-accent);
    font-size: 32px;
    box-shadow: 0 8px 25px rgba(189, 144, 86, 0.3);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55),
        box-shadow 0.4s ease;
    position: relative;
    z-index: 1;
}

.mv-card:hover .mv-card__icon-wrap {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(189, 144, 86, 0.4);
}

.mv-card__title {
    font-family: 'Merriweather', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-warm);
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.mv-card__divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-gold));
    margin: 0 auto 20px;
    border-radius: 2px;
    transition: width 0.4s ease;
}

.mv-card:hover .mv-card__divider {
    width: 100px;
}

.mv-card__text {
    font-family: 'Merriweather', serif;
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-secondary);
    max-width: 420px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

@keyframes mvReveal {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   VALORES - CARDS GRID
   ======================================== */

.valores {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 60px 20px;
    background: var(--bg-secondary);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 15px var(--shadow-light);
    transition: background 0.4s ease;
}

.valores::before {
    content: '💫';
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 60px;
    opacity: 0.08;
    pointer-events: none;
}

.valores .titulo-pag {
    margin-top: 0;
    margin-bottom: 45px;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 10px;
}


.valor-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 35px 28px 30px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 6px 25px var(--shadow-light);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.35s ease,
        border-color 0.35s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

.valor-card.is-visible {
    animation: valorReveal 0.6s ease-out forwards;
}

.valor-card.is-visible:nth-child(1) {
    animation-delay: 0.1s;
}

.valor-card.is-visible:nth-child(2) {
    animation-delay: 0.2s;
}

.valor-card.is-visible:nth-child(3) {
    animation-delay: 0.3s;
}

.valor-card.is-visible:nth-child(4) {
    animation-delay: 0.4s;
}

.valor-card.is-visible:nth-child(5) {
    animation-delay: 0.5s;
}

.valor-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    border-radius: 0 0 16px 16px;
}

.valor-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 45px var(--shadow-card);
    border-color: var(--border-accent);
}

.valor-card:hover::after {
    transform: scaleX(1);
}

.valor-card__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 18px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(189, 144, 86, 0.12), rgba(212, 165, 116, 0.08));
    color: var(--accent-warm);
    font-size: 26px;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55),
        background 0.3s ease;
    border: 1px solid var(--border-color);
}

.valor-card:hover .valor-card__icon {
    transform: scale(1.15) rotate(-5deg);
    background: linear-gradient(135deg, var(--accent), var(--accent-gold));
    color: var(--text-on-accent);
    border-color: transparent;
}

.valor-card__title {
    font-family: 'Merriweather', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-warm);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.valor-card__text {
    font-family: 'Merriweather', serif;
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-secondary);
}

@keyframes valorReveal {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ========================================
   VALORES GRID - CENTRALIZAR 2 ÚLTIMOS
   Linha 1: 3 cards | Linha 2: 2 centralizados
   ======================================== */

@supports (display: grid) {
    .valores-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .valores-grid .valor-card:nth-child(1) {
        grid-column: 1 / 3;
    }

    .valores-grid .valor-card:nth-child(2) {
        grid-column: 3 / 5;
    }

    .valores-grid .valor-card:nth-child(3) {
        grid-column: 5 / 7;
    }

    .valores-grid .valor-card:nth-child(4) {
        grid-column: 2 / 4;
    }

    .valores-grid .valor-card:nth-child(5) {
        grid-column: 4 / 6;
    }
}


/* ========================================
   RESPONSIVO – MISSÃO, VISÃO & VALORES
   ======================================== */

@media (max-width: 900px) {
    .mv-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .mv-card {
        padding: 40px 30px;
    }

    .valores-grid,
    .valores-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .valores-grid .valor-card:nth-child(1),
    .valores-grid .valor-card:nth-child(2),
    .valores-grid .valor-card:nth-child(3),
    .valores-grid .valor-card:nth-child(4),
    .valores-grid .valor-card:nth-child(5) {
        grid-column: auto !important;
    }

    .valores-grid .valor-card:nth-child(5) {
        grid-column: 1 / -1 !important;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .missao-visao {
        margin: 40px auto;
        padding: 0 15px;
    }

    .mv-card {
        padding: 35px 20px;
    }

    .mv-card__icon-wrap {
        width: 65px;
        height: 65px;
        font-size: 26px;
    }

    .mv-card__title {
        font-size: 1.5rem;
    }

    .mv-card__text {
        font-size: 14px;
    }

    .valores {
        padding: 40px 15px;
        margin: 0 10px 40px;
        border-radius: 16px;
    }

    .valores-grid,
    .valores-grid {
        grid-template-columns: 1fr !important;
        gap: 18px;
    }

    .valores-grid .valor-card:nth-child(5) {
        max-width: 100%;
    }

    .valor-card {
        padding: 28px 20px 24px;
    }

    .valor-card__icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
        border-radius: 12px;
    }

    .valor-card__title {
        font-size: 1rem;
    }

    .valor-card__text {
        font-size: 13px;
    }
}