/*
    Instituto ADAPTA - Estilo Principal
    Tema claro com acentos em bordô e azul profundo
*/

:root {
    --bg-main: #f4f7fb;
    --bg-soft: #e9eff6;
    --primary: #8b0000;
    --accent-blue: #0d2345;
    --text-main: #16263b;
    --text-muted: #4d5d70;
    --card-bg: rgba(255, 255, 255, 0.84);
    --border-soft: rgba(22, 38, 59, 0.16);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(circle at 12% 10%, rgba(139, 0, 0, 0.12), transparent 36%),
        radial-gradient(circle at 90% 15%, rgba(13, 35, 69, 0.16), transparent 32%),
        linear-gradient(165deg, #f9fbff 0%, var(--bg-main) 45%, var(--bg-soft) 100%);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif; /* Elegant serif to match the logo style */
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-main);
}

.text-muted {
    color: var(--text-muted) !important;
    opacity: 1;
}

.text-gradient {
    background: linear-gradient(to right, #feeeeee3, #bcdeffe3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
    padding: 1.5rem 0;
    transition: var(--transition);
    background: rgba(249, 252, 255, 0.78);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    padding: 0.8rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-soft);
}

.navbar-brand {
    gap: 0.75rem;
}

.sr-only-left {
    position: absolute;
    left: -9999px;
}

.brand-harpia {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.brand-harpia-img {
    width: 94px;
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    filter: invert(1);
    mix-blend-mode: multiply;
}

.brand-wordmark {
    width: 180px;
    height: 56px;
    fill: var(--accent-blue);
}

.nav-link {
    color: var(--text-main) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    opacity: 0.9;
    transition: var(--transition);
}

.nav-link:hover {
    opacity: 1;
    color: var(--primary) !important;
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    background-image: url(images/background.svg);
    background-size: cover;
}

.hero-title {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.color-light {
    color: #f4f7fbe3;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #f4f7fbb3;;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* Botões */
.btn-primary-custom {
    background: var(--primary);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary-custom:hover {
    background: #a50000;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(139, 0, 0, 0.3);
}

.btn-outline-custom {
    background: transparent;
    color: var(--text-main);
    padding: 0.8rem 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-soft);
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-custom:hover {
    background: rgba(13, 35, 69, 0.06);
    border-color: rgba(13, 35, 69, 0.35);
    transform: translateY(-2px);
}

section:nth-of-type(even) {
    background: rgba(255, 255, 255, 0.5);
}

/* Seções Gerais */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Cards */
.custom-card {
    border: 1px solid var(--border-soft);
    background-color: rgba(255, 248, 248, 0.29);
    border-radius: 16px;
    padding: 2.5rem;
    height: 100%;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.color-dark-blue {
    color: #4c6893;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.project-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: rgba(13, 35, 69, 0.06);
    border-bottom: 1px solid var(--border-soft);
}

.project-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.project-card-link .custom-card {
    transition: var(--transition);
}

.project-card-link:hover .custom-card,
.project-card-link:focus-visible .custom-card {
    transform: translateY(-4px);
    border-color: rgba(139, 0, 0, 0.28);
    box-shadow: 0 18px 36px rgba(22, 38, 59, 0.1);
}

.project-card-link:focus-visible {
    outline: none;
}

/* Missão, Visão e Valores */
.principles-section-header {
    max-width: 820px;
    margin: 0 auto 1.75rem;
}

.principles-section-header .section-title {
    margin-bottom: 1.25rem;
}

.principle-card {
    border-top: 4px solid var(--primary);
    width: 100%;
}

.principle-card h3,
.values-card h3 {
    margin-bottom: 1rem;
}

.principle-icon {
    display: inline-block;
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.values-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.values-card-header .principle-icon,
.values-card-header h3 {
    margin-bottom: 0;
}

.values-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.values-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
    color: var(--text-muted);
}

.values-list i {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

/* Equipe */
.team-section-header {
    max-width: 760px;
    margin: 0 auto 1.75rem;
}

.team-section-header .section-title {
    margin-bottom: 1.25rem;
}

.team-member-card {
    height: 100%;
    padding: 1.25rem;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    text-align: center;
    backdrop-filter: blur(6px);
    transition: var(--transition);
    cursor: pointer;
}

.team-member-card:hover,
.team-member-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(139, 0, 0, 0.28);
    box-shadow: 0 18px 36px rgba(22, 38, 59, 0.1);
    outline: none;
}

.team-member-photo {
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 1.25rem;
    border-radius: 8px;
    background-image: var(--member-photo), linear-gradient(135deg, rgba(13, 35, 69, 0.08), rgba(139, 0, 0, 0.08));
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border: 1px solid rgba(22, 38, 59, 0.12);
}

.team-member-photo-1 {
    --member-photo: url("images/membro-1.png");
}

.team-member-photo-2 {
    --member-photo: url("images/membro-2.png");
}

.team-member-photo-3 {
    --member-photo: url("images/membro-3.png");
}

.team-member-photo-4 {
    --member-photo: url("images/membro-4.jpeg");
}

.team-member-card h3 {
    margin-bottom: 0.35rem;
    font-family: 'Inter', sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text-main);
}

.team-member-card p {
    margin-bottom: 0.95rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.team-member-action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
}

.team-story-modal .modal-content {
    border: 1px solid rgba(22, 38, 59, 0.14);
    border-radius: 8px;
    color: var(--text-main);
}

.team-story-modal .modal-header {
    align-items: flex-start;
    border-bottom-color: var(--border-soft);
    padding: 1.5rem 1.5rem 1.1rem;
}

.team-story-modal .modal-body {
    padding: 1.5rem;
}

.team-story-modal .modal-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    line-height: 1.15;
}

.modal-member-role {
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.team-story-content {
    color: var(--text-muted);
    font-size: 1rem;
}

.team-story-content h2,
.team-story-content h3,
.team-story-content h4 {
    margin: 1.4rem 0 0.7rem;
    color: var(--text-main);
}

.team-story-content h2:first-child,
.team-story-content h3:first-child,
.team-story-content h4:first-child {
    margin-top: 0;
}

.team-story-content p,
.team-story-content ul {
    margin-bottom: 1rem;
}

.team-story-content ul {
    padding-left: 1.25rem;
}

.team-story-content a {
    color: var(--primary);
    font-weight: 700;
}

.team-story-content .story-loading,
.team-story-content .story-error {
    margin-bottom: 0;
}

.reveal-ready {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, border-color 0.3s ease, box-shadow 0.3s ease;
}

.reveal-ready.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.team-member-card.reveal-ready.is-revealed:hover,
.team-member-card.reveal-ready.is-revealed:focus-visible {
    transform: translateY(-4px);
}

/* Metodologia (Steps) */
.step-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 2rem;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #ffffff;
}

/* Parceiros */
.partner-logo-frame {
    width: 170px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.56);
    padding: 1rem;
}

.partner-logo {
    filter: grayscale(1);
    opacity: 0.5;
    transition: var(--transition);
    max-width: 100%;
    max-height: 52px;
    object-fit: contain;
}

.partner-logo-frame:hover .partner-logo {
    filter: grayscale(0);
    opacity: 1;
}

.cta-card {
    background: linear-gradient(145deg, #8b0000, #3d1635);
    color: #ffffff;
}

.cta-card h2,
.cta-card p {
    color: #ffffff;
}

/* Footer */
footer {
    padding: 80px 0 30px;
    background: rgba(255, 255, 255, 0.72);
    border-top: 1px solid var(--border-soft);
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-link:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-social a {
    color: var(--text-main);
}

.footer-social a:hover {
    color: var(--primary);
}

/* Responsividade */
@media (max-width: 991px) {
    .hero-title {
        font-size: 3rem;
    }

    .brand-wordmark {
        width: 160px;
        height: 42px;
    }

    .values-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    section {
        padding: 60px 0;
    }

}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .brand-wordmark {
        width: 132px;
        height: 36px;
    }

    .values-list {
        grid-template-columns: 1fr;
    }
    
    .hero-section {
        text-align: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .team-member-card {
        padding: 1rem;
    }
}

#contato {
    color: #f4f7fbb3;
    background: 
        url(images/background.svg),
        linear-gradient(145deg, #8b0000, #3d1635);
    background-size: cover;
}

#contato h2 {
    font-size: 3em;
}
