/* Design system - Instituto Acolher H. Dobal */
:root {
    --c-blue-dark: #144396;
    --c-blue-deep: #0b2c68;
    --c-blue-light: #4bbbe0;
    --c-coral: #ef475b;
    --c-yellow: #f2c035;
    --bg-light: #f8fafe;
    --bg-soft: #eef7fc;
    --bg-white: #ffffff;
    --text-main: #24364b;
    --text-muted: #64758b;
    --border-soft: rgba(20, 67, 150, 0.1);
    --shadow-soft: 0 16px 45px rgba(20, 67, 150, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

a {
    color: var(--c-blue-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--c-blue-dark);
    font-weight: 700;
}

.text-coral { color: var(--c-coral) !important; }
.text-blue-dark { color: var(--c-blue-dark) !important; }
.text-blue-light { color: var(--c-blue-light) !important; }
.text-yellow { color: var(--c-yellow) !important; }
.bg-blue-dark { background-color: var(--c-blue-dark) !important; }
.bg-coral { background-color: var(--c-coral) !important; }
.bg-soft { background-color: var(--bg-light) !important; }

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

.section-eyebrow,
.about-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--c-coral);
    background: rgba(239, 71, 91, 0.09);
    border-radius: 999px;
    padding: 8px 15px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(2rem, 3.2vw, 3rem);
    line-height: 1.16;
}

.lead-muted {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

.btn-custom-coral,
.btn-outline-blue,
.btn-white {
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    line-height: 1;
    min-height: 46px;
    padding: 13px 26px;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.btn-custom-coral {
    background-color: var(--c-coral);
    border: 2px solid var(--c-coral);
    color: #fff;
    box-shadow: 0 12px 24px rgba(239, 71, 91, 0.24);
}

.btn-custom-coral:hover {
    background-color: #db3d50;
    border-color: #db3d50;
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline-blue {
    background: transparent;
    border: 2px solid var(--c-blue-dark);
    color: var(--c-blue-dark);
}

.btn-outline-blue:hover {
    background-color: var(--c-blue-dark);
    color: #fff;
    transform: translateY(-2px);
}

.btn-white {
    background: #fff;
    border: 2px solid #fff;
    color: var(--c-blue-dark);
}

.btn-white:hover {
    background: var(--c-yellow);
    border-color: var(--c-yellow);
    color: var(--c-blue-dark);
}

/* Header */
.navbar {
    background-color: var(--c-blue-dark);
    box-shadow: 0 8px 30px rgba(11, 44, 104, 0.18);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    align-items: center;
    display: flex;
    gap: 12px;
    min-width: 220px;
}

.brand-logo-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    padding: 7px 10px;
}

.brand-logo {
    display: block;
    height: 42px;
    object-fit: contain;
    width: 142px;
}

.brand-caption {
    color: rgba(255, 255, 255, 0.86);
    display: none;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.24) !important;
    color: rgba(255, 255, 255, 0.9);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-nav {
    row-gap: 4px;
}

.nav-link {
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.84) !important;
    font-size: 0.91rem;
    font-weight: 600;
    margin: 0 2px;
    padding: 9px 12px !important;
    position: relative;
    transition: background-color 0.25s ease, color 0.25s ease;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.11);
    color: #fff !important;
}

.nav-link.active::after {
    background: var(--c-coral);
    border-radius: 999px;
    bottom: 2px;
    content: '';
    height: 3px;
    left: 18px;
    position: absolute;
    right: 18px;
}

/* Hero */
.hero-section {
    background:
        radial-gradient(circle at 12% 20%, rgba(75, 187, 224, 0.18), transparent 30%),
        linear-gradient(135deg, var(--bg-light) 0%, #fff 72%);
    overflow: hidden;
    padding: 92px 0 82px;
    position: relative;
}

.hero-title {
    color: var(--c-blue-dark);
    font-size: clamp(2.35rem, 5vw, 4.6rem);
    letter-spacing: -0.02em;
    line-height: 1.07;
}

.hero-media-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 26px;
    box-shadow: var(--shadow-soft);
    isolation: isolate;
    overflow: hidden;
    position: relative;
}

.hero-media-card::before {
    background: linear-gradient(135deg, rgba(20, 67, 150, 0.18), rgba(75, 187, 224, 0.1));
    content: '';
    inset: 0;
    position: absolute;
    z-index: 1;
}

.hero-media-card img {
    aspect-ratio: 1 / 1;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.hero-stat-badge {
    background: #fff;
    border-radius: 18px;
    bottom: 24px;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.14);
    left: 24px;
    max-width: 260px;
    padding: 18px;
    position: absolute;
    z-index: 2;
}

.hero-stat-badge strong {
    color: var(--c-coral);
    display: block;
    font-size: 1.55rem;
    line-height: 1;
}

/* Reusable cards */
.info-card,
.feature-card,
.service-card,
.news-card,
.gallery-card,
.project-card,
.partner-card,
.contact-card,
.benefit-card,
.resume-form-card,
.placeholder-panel {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(20, 67, 150, 0.06);
}

.info-card,
.feature-card,
.service-card,
.project-card,
.partner-card,
.contact-card,
.benefit-card,
.placeholder-panel {
    height: 100%;
    padding: 28px;
}

.info-card {
    border-left: 5px solid var(--c-blue-light);
}

.info-card.vision {
    border-left-color: var(--c-yellow);
}

.icon-circle,
.icon-wrapper,
.benefit-icon {
    align-items: center;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
}

.icon-circle {
    color: #fff;
    flex: 0 0 auto;
    font-size: 1.35rem;
    height: 52px;
    width: 52px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.value-tag {
    background: var(--bg-light);
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    color: var(--c-blue-dark);
    font-size: 0.88rem;
    font-weight: 700;
    padding: 9px 14px;
}

.image-frame {
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.image-frame img {
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    width: 100%;
}

.numbers-section {
    background:
        linear-gradient(135deg, rgba(20, 67, 150, 0.96), rgba(11, 44, 104, 0.98)),
        url('../img/quemsomos1.jpeg') center/cover;
    color: #fff;
    padding: 84px 0;
}

.number-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    height: 100%;
    padding: 28px 18px;
}

.number-value {
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1;
}

.number-label {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
    margin-top: 12px;
}

.services-section {
    background: var(--bg-light);
    padding: 90px 0;
}

.service-card {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 190px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover,
.project-card:hover,
.partner-card:hover,
.news-card:hover,
.gallery-card:hover {
    box-shadow: var(--shadow-soft);
    transform: translateY(-4px);
}

.icon-wrapper {
    background: rgba(75, 187, 224, 0.14);
    color: var(--c-blue-dark);
    font-size: 1.6rem;
    height: 58px;
    width: 58px;
}

.service-text {
    font-size: 1.05rem;
    line-height: 1.45;
    margin: 0;
}

.news-section {
    padding: 90px 0;
}

.news-card {
    height: 100%;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-img-wrapper {
    min-height: 220px;
    overflow: hidden;
    position: relative;
}

.news-img-wrapper img,
.gallery-card img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.news-category {
    background: var(--c-coral);
    border-radius: 999px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    left: 18px;
    letter-spacing: 0.05em;
    padding: 7px 12px;
    position: absolute;
    text-transform: uppercase;
    top: 18px;
    z-index: 2;
}

.news-category.edital {
    background: var(--c-yellow);
    color: var(--c-blue-deep);
}

.news-body {
    padding: 24px;
}

.news-title {
    font-size: 1.15rem;
    line-height: 1.4;
}

.news-text {
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.65;
}

.btn-link-custom {
    align-items: center;
    color: var(--c-blue-dark);
    display: inline-flex;
    font-weight: 700;
    gap: 8px;
    text-decoration: none;
}

.btn-link-custom:hover {
    color: var(--c-coral);
}

/* Page header */
.page-header {
    background:
        radial-gradient(circle at 82% 10%, rgba(242, 192, 53, 0.18), transparent 28%),
        linear-gradient(135deg, var(--bg-light) 0%, #fff 100%);
    padding: 72px 0 58px;
    position: relative;
    text-align: center;
}

.page-title {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    margin-bottom: 18px;
}

.breadcrumb-custom {
    align-items: center;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    box-shadow: 0 8px 25px rgba(20, 67, 150, 0.06);
    display: inline-flex;
    flex-wrap: wrap;
    font-size: 0.9rem;
    font-weight: 600;
    justify-content: center;
    padding: 10px 22px;
}

.breadcrumb-custom a {
    color: var(--c-blue-dark);
    text-decoration: none;
}

.breadcrumb-custom .separator {
    color: var(--text-muted);
    margin: 0 10px;
}

.breadcrumb-custom .current {
    color: var(--text-muted);
}

/* Gallery, projects and partners */
.gallery-card {
    border-radius: 18px;
    height: 100%;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-card img {
    aspect-ratio: 4 / 3;
    display: block;
}

.gallery-caption {
    padding: 22px;
}

.project-card {
    border-top: 5px solid var(--c-blue-light);
}

.project-card.coral {
    border-top-color: var(--c-coral);
}

.project-card.yellow {
    border-top-color: var(--c-yellow);
}

.partner-logo-placeholder {
    align-items: center;
    background: var(--bg-light);
    border: 1px dashed rgba(20, 67, 150, 0.22);
    border-radius: 16px;
    color: var(--c-blue-dark);
    display: flex;
    font-weight: 800;
    height: 96px;
    justify-content: center;
    letter-spacing: 0.08em;
    text-align: center;
}

.placeholder-panel {
    background:
        linear-gradient(135deg, rgba(248, 250, 254, 0.96), rgba(255, 255, 255, 0.96));
}

/* Portal da Transparencia */
.transparency-section {
    background-color: #fff;
    padding: 78px 0 100px;
}

.intro-card {
    background: linear-gradient(135deg, var(--bg-light), #fff);
    border: 1px solid var(--border-soft);
    border-left: 6px solid var(--c-blue-light);
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(20, 67, 150, 0.06);
    margin-bottom: 40px;
    padding: 30px;
}

.transparency-kpi {
    background: var(--c-blue-dark);
    border-radius: 18px;
    color: #fff;
    height: 100%;
    padding: 24px;
}

.transparency-kpi strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
}

.search-filter-box {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 42px;
    padding: 28px;
}

.filter-title {
    color: var(--c-blue-dark);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.category-btn-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-filter-btn {
    background: var(--bg-light);
    border: 1px solid rgba(20, 67, 150, 0.12);
    border-radius: 999px;
    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 700;
    padding: 9px 16px;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.category-filter-btn:hover,
.category-filter-btn.active {
    background: var(--c-blue-dark);
    border-color: var(--c-blue-dark);
    color: #fff;
    transform: translateY(-1px);
}

.search-input-wrapper {
    position: relative;
}

.search-input-wrapper i {
    color: var(--text-muted);
    left: 15px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.search-input-wrapper .form-control {
    padding-left: 45px;
}

.doc-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(20, 67, 150, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    overflow: hidden;
    padding: 25px;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.doc-card::before {
    background: var(--c-blue-light);
    content: '';
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 5px;
}

.doc-card:hover {
    box-shadow: var(--shadow-soft);
    transform: translateY(-4px);
}

.doc-category-badge {
    background-color: rgba(75, 187, 224, 0.12);
    border-radius: 999px;
    color: var(--c-blue-dark);
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
    padding: 7px 12px;
    text-transform: uppercase;
}

.doc-card[data-cat="Editais"]::before { background-color: var(--c-coral); }
.doc-card[data-cat="Editais"] .doc-category-badge { background-color: rgba(239, 71, 91, 0.12); color: var(--c-coral); }
.doc-card[data-cat="Termos de Fomento"]::before { background-color: var(--c-yellow); }
.doc-card[data-cat="Termos de Fomento"] .doc-category-badge { background-color: rgba(242, 192, 53, 0.2); color: #8b6a05; }

.doc-date {
    color: var(--text-muted);
    font-size: 0.84rem;
    margin-bottom: 10px;
}

.doc-title {
    color: var(--c-blue-dark);
    font-size: 1.13rem;
    line-height: 1.42;
    margin-bottom: 12px;
}

.doc-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.doc-footer {
    align-items: center;
    border-top: 1px solid rgba(20, 67, 150, 0.08);
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 16px;
}

/* Forms */
.resume-form-card {
    padding: 36px;
}

.form-control,
.form-select {
    background-color: #fcfdff;
    border: 1px solid #dfe7f1;
    border-radius: 12px;
    color: var(--text-main);
    font-size: 0.95rem;
    padding: 12px 14px;
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-control:focus,
.form-select:focus {
    background-color: #fff;
    border-color: var(--c-blue-light);
    box-shadow: 0 0 0 0.22rem rgba(75, 187, 224, 0.2);
}

.form-label {
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.file-upload-wrapper {
    background: var(--bg-light);
    border: 2px dashed rgba(20, 67, 150, 0.16);
    border-radius: 14px;
    cursor: pointer;
    padding: 30px;
    position: relative;
    text-align: center;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.file-upload-wrapper:hover {
    background: #fff;
    border-color: var(--c-blue-light);
}

.file-upload-wrapper input[type="file"] {
    cursor: pointer;
    height: 100%;
    inset: 0;
    opacity: 0;
    position: absolute;
    width: 100%;
}

.form-feedback {
    border-radius: 14px;
    display: none;
    font-weight: 600;
    margin-top: 18px;
    padding: 14px 16px;
}

.form-feedback.is-visible {
    display: block;
}

.form-feedback.success {
    background: rgba(37, 211, 102, 0.1);
    color: #16733a;
}

/* Footer */
.footer {
    background: var(--c-blue-deep);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
    padding: 74px 0 28px;
}

.footer-brand img {
    background: #fff;
    border-radius: 14px;
    display: block;
    margin-bottom: 16px;
    max-width: 210px;
    padding: 8px 12px;
}

.footer-title {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 22px;
    padding-bottom: 12px;
    position: relative;
}

.footer-title::after {
    background: var(--c-coral);
    border-radius: 999px;
    bottom: 0;
    content: '';
    height: 3px;
    left: 0;
    position: absolute;
    width: 38px;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 11px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
}

.footer-links a:hover {
    color: var(--c-yellow);
    transform: translateX(4px);
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons span,
.social-icons a {
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    height: 40px;
    justify-content: center;
    text-decoration: none;
    width: 40px;
}

.social-icons span {
    opacity: 0.65;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    margin-top: 52px;
    padding-top: 24px;
}

.whatsapp-float {
    align-items: center;
    background-color: #25d366;
    border-radius: 50%;
    bottom: 28px;
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.32);
    color: #fff;
    display: flex;
    font-size: 1.85rem;
    height: 58px;
    justify-content: center;
    position: fixed;
    right: 28px;
    text-decoration: none;
    transition: transform 0.25s ease;
    width: 58px;
    z-index: 999;
}

.whatsapp-float:hover {
    color: #fff;
    transform: translateY(-3px);
}

/* Responsive */
@media (min-width: 1200px) {
    .brand-caption {
        display: block;
    }
}

@media (max-width: 1199.98px) {
    .brand-logo {
        width: 132px;
    }

    .nav-link {
        font-size: 0.88rem;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        margin-top: 14px;
        padding-top: 14px;
    }

    .navbar-nav {
        align-items: stretch !important;
    }

    .nav-link.active::after {
        display: none;
    }

    .hero-section,
    .section-padding,
    .services-section,
    .news-section,
    .transparency-section {
        padding: 64px 0;
    }

    .hero-media-card {
        margin-top: 12px;
    }
}

@media (max-width: 767.98px) {
    .brand-logo-box {
        padding: 6px 8px;
    }

    .brand-logo {
        height: 36px;
        width: 118px;
    }

    .page-header {
        padding: 54px 0 42px;
    }

    .hero-stat-badge {
        bottom: 16px;
        left: 16px;
        right: 16px;
    }

    .doc-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .doc-footer .btn {
        width: 100%;
    }

    .resume-form-card,
    .search-filter-box,
    .intro-card {
        padding: 24px;
    }

    .whatsapp-float {
        bottom: 18px;
        font-size: 1.55rem;
        height: 52px;
        right: 18px;
        width: 52px;
    }
}
