@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root{
    --primary: #d94a7b;
    --primary-dark: #c03b69;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-image: url(../img/fundo.png);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* ---------- Fade-in ao rolar a página ---------- */
.reveal{
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible{
    opacity: 1;
    transform: translateY(0);
}

.card-ms,
.card-ds{
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.4s ease, box-shadow 0.4s ease;
}
.cards.visible .card-ms,
.cards.visible .card-ds{
    opacity: 1;
    transform: translateY(0);
}
.cards.visible .card-ds{
    transition-delay: 0.15s;
}

.icss{
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.3s ease;
}
.ic.visible .icss{
    opacity: 1;
    transform: translateY(0);
}
.ic.visible .icss:nth-child(1){ transition-delay: 0.05s; }
.ic.visible .icss:nth-child(2){ transition-delay: 0.15s; }
.ic.visible .icss:nth-child(3){ transition-delay: 0.25s; }
.ic.visible .icss:nth-child(4){ transition-delay: 0.35s; }

.cpss{
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.cp.visible .cpss{
    opacity: 1;
    transform: translateY(0);
}
.cp.visible .cpss:nth-child(1){ transition-delay: 0.05s; }
.cp.visible .cpss:nth-child(3){ transition-delay: 0.2s; }
.cp.visible .cpss:nth-child(5){ transition-delay: 0.35s; }
.cp.visible .cpss:nth-child(7){ transition-delay: 0.5s; }

header {
    width: 100%;
    background-color: white;
    border-bottom: 1px solid #e5e5e5;
}
.loc-actions{
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}
.loc-btn{
    background: rgba(0,0,0,0.08);
    color: #ad2929;
    border: 1px solid rgba(173,41,41,0.3);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    width: fit-content;
}
.loc-btn:hover{
    background: rgba(0,0,0,0.15);
}
.back-to-top{
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 900;
}
.back-to-top.visible{
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.back-to-top:hover{
    background: var(--primary-dark);
}
.navbar {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 20px;
}

.logo img {
    width: 350px;
    max-width: 100%;
}

.menu {
    display: flex;
    list-style: none;
    gap: 50px;
    flex-wrap: wrap;
}

.menu a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    text-transform: uppercase;
    transition: 0.3s;
}

.menu a:hover {
    color: #d94a7b;
}

.menu .ativo {
    color: #d94a7b;
    border-bottom: 3px solid #d94a7b;
    padding-bottom: 8px;
}

.btn-doador {
    text-decoration: none;
    background-color: #d94a7b;
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: bold;
    transition: 0.3s;
}

.btn-doador:hover {
    background-color: #c03b69;
}

.topo {
    text-align: center;
    margin-top: 50px;
    padding: 0 20px;
}

.topo h1 {
    color: #d94a5d;
    font-size: 32px;
}

.par {
    color: rgba(0, 0, 0, 0.815);
    font-size: 17px;
    margin-top: 10px;
}

.cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 50px;
    padding: 0 20px 50px;
}

.card-ms {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    gap: 20px;
    width: 570px;
    max-width: 100%;
    height: 300px;
    padding: 25px;
    background-color: #ffdce8;
    border: 2px solid #e07d8a;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.card-ms img {
    width: 180px;
    justify-self: center;
}

.hms {
    color: #d94a5d;
}

.card-ds {
    display: grid;
    grid-template-columns: 2fr 1fr;
    align-items: center;
    gap: 20px;
    width: 570px;
    max-width: 100%;
    height: 300px;
    padding: 25px;
    background-color: #fdf1f1;
    border: 2px solid #ff6565;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.card-ds img {
    width: 180px;
}

.hds {
    color: #d43030;
}

.text h1 {
    margin-bottom: 15px;
}

.text p {
    margin-bottom: 20px;
    color: rgba(0, 0, 0, 0.815);
    line-height: 1.5;
}

.btn-ms {
    background-color: #d94a5d;
    border: none;
    width: 180px;
    max-width: 100%;
    height: 45px;
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-ms:hover {
    background-color: #c04152;
}

.btn-ds {
    background-color: #d43030;
    border: none;
    width: 180px;
    max-width: 100%;
    height: 45px;
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    margin-right: 124px;
}

.btn-ds:hover {
    background-color: #ad2929;
}

.card-ds:hover,
.card-ms:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.5);
}

.ics {
    background-color: #faaeb8;
    padding: 40px 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px 30px;
    justify-items: center;
    align-items: start;
}

.icss {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    max-width: 280px;
    position: relative;
    padding-bottom: 10px;
}
.icss:hover{
    transform: translateY(-6px);
}
.icss::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 10%;
    height: 80%;
    width: 2px;
    background-color: #e07d8a;
    opacity: 0.5;
}

.icss:last-child::after {
    display: none;
}

.hic {
    color: #be3144;
    font-size: 20px;
    margin-bottom: 2px;
}

.pic {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.icon {
    font-size: 40px;
    color: #fff;
    background-color: #be3144;
    border-radius: 50%;
    padding: 7px;
    flex-shrink: 0;
    margin-top: 2px;
    transition: transform 0.3s ease;
}
.icss:hover .icon{
    transform: scale(1.15) rotate(-5deg);
}

/* ===== SEÇÃO COMO PARTICIPAR ===== */
.cp {
    background-color: #fff;
    padding: 20px 0 10px;
}

.cc {
    text-align: center;
    padding: 20px 15px 10px;
}

.cc h1 {
    color: #d94a5d;
    font-size: 28px;
}

.cps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 20px 20px 40px;
}

.cpss {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 1 auto;
}

.icons {
    width: 60px;
    height: 60px;
    border: 2px solid #be3144;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cpss:hover .icons{
    background-color: #be3144;
    transform: scale(1.1);
}

.icn {
    color: #be3144;
    font-size: 34px;
    transition: color 0.3s ease;
}

.cpss:hover .icn{
    color: #fff;
}

.ins {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    color: #333;
}

.seta {
    color: #be3144;
    font-size: 40px;
    flex-shrink: 0;
}

.rdp {
    background: #ffff;
    color: black;
    padding-top: 20px;
}

#footer-container {
    background-color: #faaeb8;
    width: 90%;
    max-width: 1200px;
    margin: auto;
    border-radius: 30px 30px 0 0;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

#col {
    flex: 1;
    min-width: 200px;
    border-right: 2px solid #e07d8a;
    padding-right: 20px;
}

#col:last-child {
    border-right: none;
    padding-right: 0;
}

#col h3,
#col h4 {
    color: #ad2929;
    margin-bottom: 25px;
    font-size: 22px;
}

#item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: black;
    font-size: 16px;
    margin-bottom: 12px;
}

.icins,
.icinsds {
    font-size: 34px;
    color: #ad2929;
    transition: 0.3s;
}

.icins:hover,
.icinsds:hover {
    transform: scale(1.15);
}

.loc {
    color: #ad2929;
    font-size: 70px;
    margin-top: 20px;
}

#copyright {
    text-align: center;
    color: #ad2929;
    background-color: #fc9ba8;
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    font-size: 16px;
}

.admin-panel-link-wrapper {
    display: flex;
    justify-content: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 20px 30px;
}

.btn-admin-panel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #ad2929;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(173, 41, 41, 0.25);
    padding: 10px 24px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: 0.3s ease;
}

.btn-admin-panel i {
    font-size: 0.95rem;
}

.btn-admin-panel:hover {
    background: #ad2929;
    color: #fff;
    border-color: #ad2929;
}

img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 1024px) {
    .navbar {
        padding: 10px 20px;
        gap: 15px;
    }

    .logo img {
        width: 220px;
    }

    .menu {
        gap: 25px;
    }

    .card-ms,
    .card-ds {
        width: 100%;
        max-width: 500px;
        height: auto;
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .card-ms img,
    .card-ds img {
        width: 130px;
    }

    .btn-ds {
        margin-right: 0;
    }

    .ics {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 20px;
        padding: 30px 20px;
    }

    .icss::after {
        right: -10px;
    }

    .cps {
        gap: 20px;
    }

    .seta {
        font-size: 34px;
    }

    #footer-container {
        flex-direction: row;
        flex-wrap: wrap;
    }

    #col {
        flex: 1 1 45%;
        border-right: none;
        border-bottom: 2px solid #e07d8a;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    #col:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .loc {
        display: none;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: center;
        padding: 15px 20px;
        gap: 15px;
    }

    .logo img {
        width: 200px;
    }

    .menu {
        gap: 20px;
        justify-content: center;
    }

    .btn-doador {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        margin-top: 20px;
    }

    .topo h1 {
        font-size: 24px;
    }

    .par {
        font-size: 15px;
    }

    .cards {
        flex-direction: column;
        align-items: center;
        padding: 0 15px 40px;
        gap: 20px;
        margin-top: 30px;
    }

    .card-ms,
    .card-ds {
        max-width: 480px;
        padding: 20px;
    }

    .btn-ms,
    .btn-ds {
        width: 100%;
        max-width: 220px;
    }

    /* Ícones em coluna */
    .ics {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 25px 20px;
        justify-items: center;
    }

    .icss {
        max-width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        text-align: left;
        border-bottom: 2px solid #e07d8a;
        padding-bottom: 20px;
    }

    .icss:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .icss::after {
        display: none;
    }

    .icon {
        font-size: 36px;
        padding: 6px;
    }

    .hic {
        font-size: 18px;
    }

    .pic {
        font-size: 13px;
    }

    /* Como participar */
    .cc h1 {
        font-size: 24px;
    }

    .cps {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 10px 20px 30px;
    }

    .cpss {
        flex-direction: row;
        justify-content: center;
        width: 100%;
        max-width: 280px;
    }

    .seta {
        transform: rotate(90deg);
        font-size: 30px;
    }

    .ins {
        font-size: 15px;
    }

    /* Rodapé */
    #footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 25px 20px;
        gap: 20px;
    }

    #col {
        flex: 1 1 100%;
        border-right: none;
        border-bottom: 2px solid #e07d8a;
        padding-bottom: 20px;
        margin-bottom: 0;
    }

    #col:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    #col h3,
    #col h4 {
        margin-left: 0;
        text-align: center;
    }

    #item {
        justify-content: center;
        margin-left: 0;
    }

    .loc {
        display: none;
    }

    #copyright {
        width: 100%;
        font-size: 14px;
        padding: 15px;
    }

    .admin-panel-link-wrapper {
        width: 100%;
        padding: 16px 20px 26px;
    }

    .btn-admin-panel {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        text-align: center;
    }
}

/* Celular pequeno */
@media (max-width: 480px) {
    .navbar {
        padding: 12px 15px;
    }

    .logo img {
        width: 170px;
    }

    .menu {
        gap: 14px;
    }

    .menu a {
        font-size: 13px;
    }

    .topo {
        margin-top: 30px;
    }

    .topo h1 {
        font-size: 20px;
    }

    .par {
        font-size: 14px;
    }

    .card-ms,
    .card-ds {
        padding: 18px;
        max-width: 100%;
    }

    .card-ms img,
    .card-ds img {
        width: 110px;
    }

    .text h1 {
        font-size: 18px;
    }

    .text p {
        font-size: 14px;
    }

    .hic {
        font-size: 17px;
    }

    .pic {
        font-size: 13px;
    }

    .cc h1 {
        font-size: 20px;
    }

    .ins {
        font-size: 14px;
    }

    .icons {
        width: 52px;
        height: 52px;
    }

    .icn {
        font-size: 30px;
    }

    .seta {
        font-size: 26px;
    }
}