/* =====================================================
   HOME
   Só a página inicial carrega este arquivo (@section Styles do Index).
   As cores e fontes vêm das variáveis do site.css.

   Movimento: o "parallax" antigo usava background-attachment: fixed, que
   o iPhone ignora e que deixava a foto chumbada. Aqui o movimento é feito
   pela rolagem (animation-timeline: view()), só onde o navegador suporta e
   só para quem não pediu menos movimento no sistema. Sem suporte, tudo
   aparece parado e completo: nada depende da animação para ser visto.
   ===================================================== */

.home-hero,
.home-sobre,
.home-parallax,
.home-sociau,
.home-especialidades,
.home-equipe {
    --home-raio: 24px;
    --home-sombra: 0 24px 60px -24px rgba(26, 46, 53, 0.35);
}

/* ---------- Tipografia comum ---------- */
.home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.9rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: var(--pet-accent-light);
    color: var(--pet-accent-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-titulo {
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.75rem, 3.4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--pet-primary);
}

    .home-titulo em,
    .home-hero-titulo em {
        font-style: normal;
        background: linear-gradient(120deg, var(--pet-accent-dark), var(--pet-accent) 60%, var(--pet-coral));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

.home-titulo-claro {
    color: #fff;
}

    .home-titulo-claro em {
        background: none;
        color: var(--pet-gold);
    }

.home-texto {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--pet-text-muted);
}

.home-lista {
    display: grid;
    gap: 0.6rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

    .home-lista li {
        position: relative;
        padding-left: 1.9rem;
        font-weight: 500;
        color: var(--pet-secondary);
    }

        .home-lista li::before {
            content: "\F272"; /* bi-check2 */
            font-family: 'bootstrap-icons';
            position: absolute;
            left: 0;
            top: 0.05rem;
            display: grid;
            place-items: center;
            width: 1.35rem;
            height: 1.35rem;
            border-radius: 50%;
            background: var(--pet-accent-light);
            color: var(--pet-accent-dark);
            font-size: 0.8rem;
        }

/* ---------- Botões ---------- */
.home-acoes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

    .home-btn:hover {
        transform: translateY(-2px);
    }

.home-btn-primario {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 12px 28px -10px var(--pet-accent-glow);
}

    .home-btn-primario:hover {
        color: #fff;
        box-shadow: 0 16px 34px -10px var(--pet-accent-glow);
    }

.home-btn-secundario {
    background: #fff;
    color: var(--pet-primary);
    border: 1.5px solid #d5e4e7;
}

    .home-btn-secundario:hover {
        color: var(--pet-primary);
        border-color: var(--pet-accent);
    }

.home-btn-claro {
    background: #fff;
    color: var(--pet-primary);
}

    .home-btn-claro:hover {
        color: var(--pet-primary);
    }

/* ---------- Hero ---------- */
.home-topo {
    position: relative;
    overflow: hidden;
    overflow: clip;
    background:
        radial-gradient(circle at 85% 20%, rgba(91, 198, 208, 0.22), transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(255, 127, 110, 0.14), transparent 40%),
        var(--gradient-hero);
}

.home-hero {
    position: relative;
    padding: calc(72px + 3.5rem) 0 3rem;
}

.home-hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 992px) {
    .home-hero-grid {
        grid-template-columns: 1.05fr 0.95fr;
    }
}

.home-hero-logo {
    width: 72px;
    height: 72px;
    margin-bottom: 1.25rem;
    border-radius: 18px;
    box-shadow: var(--shadow-md);
}

.home-hero-titulo {
    margin-bottom: 1.25rem;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.3rem, 5.2vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--pet-primary);
}

.home-kicker {
    display: block;
    margin-bottom: 0.9rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--pet-accent-dark);
}

/* O termo de busca dentro dos títulos das seções, pequeno em cima da frase. */
.home-titulo .home-kicker {
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}

.home-titulo-claro .home-kicker {
    color: var(--pet-accent);
}

.home-hero-sub {
    max-width: 34rem;
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--pet-text-muted);
}

.home-provas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.9rem;
    color: var(--pet-text-muted);
}

    .home-provas li {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        font-weight: 600;
        color: var(--pet-secondary);
    }

    .home-provas .bi {
        color: var(--pet-coral);
    }

/* Três fotos reais em leque, flutuando devagar. */
.home-hero-fotos {
    position: relative;
    height: clamp(340px, 42vw, 500px);
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
}

.home-hero-foto {
    position: absolute;
    margin: 0;
    overflow: hidden;
    border: 6px solid #fff;
    border-radius: var(--home-raio);
    box-shadow: var(--home-sombra);
    background: #e6f2f3;
}

    .home-hero-foto img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.home-hero-foto-1 {
    width: 62%;
    height: 72%;
    left: 4%;
    top: 4%;
    transform: rotate(-4deg);
    z-index: 2;
}

.home-hero-foto-2 {
    width: 48%;
    height: 52%;
    right: 0;
    top: 0;
    transform: rotate(5deg);
    z-index: 1;
}

.home-hero-foto-3 {
    width: 50%;
    height: 50%;
    right: 6%;
    bottom: 0;
    transform: rotate(-2deg);
    z-index: 3;
}

.home-hero-selo {
    position: absolute;
    left: 0;
    bottom: 6%;
    z-index: 4;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--shadow-md);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--pet-primary);
}

@media (prefers-reduced-motion: no-preference) {
    .home-hero-foto-1 { animation: home-flutuar 7s ease-in-out infinite; }
    .home-hero-foto-2 { animation: home-flutuar 8s ease-in-out -2s infinite; }
    .home-hero-foto-3 { animation: home-flutuar 9s ease-in-out -4s infinite; }
}

@keyframes home-flutuar {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -10px; }
}

/* ---------- Atalhos para as galerias ---------- */
.home-atalhos-faixa {
    padding: 0 0 4rem;
}

.home-atalhos {
    display: grid;
    gap: 0.9rem;
}

@media (min-width: 768px) {
    .home-atalhos {
        grid-template-columns: repeat(3, 1fr);
    }
}

.home-atalho {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.15rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #e2eff1;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: var(--pet-primary);
    backdrop-filter: blur(6px);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

    .home-atalho:hover {
        transform: translateY(-3px);
        border-color: var(--pet-accent);
        box-shadow: var(--shadow-md);
        color: var(--pet-primary);
    }

.home-atalho-icone {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    color: #fff;
    font-size: 1.3rem;
}

.home-atalho-daycare { background: linear-gradient(135deg, #f4c542, #f59e0b); }
.home-atalho-banho { background: var(--gradient-accent); }
.home-atalho-sociau { background: linear-gradient(135deg, #ff9a8b, var(--pet-coral)); }

.home-atalho-texto {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

    .home-atalho-texto strong {
        font-size: 1.02rem;
    }

    .home-atalho-texto small {
        color: var(--pet-text-muted);
    }

.home-atalho-seta {
    margin-left: auto;
    color: var(--pet-accent-dark);
    transition: transform 0.2s ease;
}

.home-atalho:hover .home-atalho-seta {
    transform: translateX(4px);
}

/* ---------- Sobre ---------- */
.home-sobre {
    padding: 6rem 0;
    background: #fff;
}

.home-sobre-grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 992px) {
    .home-sobre-grid {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 4rem;
    }
}

.home-citacao {
    margin: 1.5rem 0 0;
    padding-left: 1.1rem;
    border-left: 4px solid var(--pet-coral);
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--pet-primary);
}

.home-sobre-card {
    padding: 2rem;
    border-radius: var(--home-raio);
    background: var(--gradient-card);
    border: 1px solid #e2eff1;
    box-shadow: var(--shadow-card);
}

    .home-sobre-card h3 {
        margin: 1rem 0 0.6rem;
        font-size: 1.3rem;
        font-weight: 800;
        color: var(--pet-primary);
    }

    .home-sobre-card p {
        color: var(--pet-text-muted);
    }

.home-sobre-card-icone,
.home-especialidade-icone {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--gradient-accent);
    color: #fff;
    font-size: 1.4rem;
    box-shadow: 0 10px 24px -10px var(--pet-accent-glow);
}

/* ---------- Day Care e Banho e Tosa: parallax de seção inteira ----------
   A foto fica numa camada maior que a seção (sobra 40% em cima e embaixo) e
   anda em sentido contrário enquanto a seção passa pela tela: o texto rola
   no ritmo da página, o fundo mais devagar. */
.home-parallax {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 85vh;
    padding: 6rem 0;
    /* clip, e não hidden: hidden faria da seção uma área de rolagem própria e o
       movimento passaria a seguir ela (que nunca rola), não a página. */
    overflow: hidden;
    overflow: clip;
    view-timeline-name: --home-secao;
    background: var(--pet-primary);
}

.home-parallax-fundo {
    position: absolute;
    inset: -40% 0;
    z-index: 0;
}

    .home-parallax-fundo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* Escurece do lado do texto para ele ler bem sobre qualquer foto. */
    .home-parallax-fundo::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(26, 46, 53, 0.92) 0%, rgba(26, 46, 53, 0.72) 45%, rgba(26, 46, 53, 0.25) 100%);
    }

.home-parallax-invertida .home-parallax-fundo::after {
    background: linear-gradient(270deg, rgba(26, 46, 53, 0.92) 0%, rgba(26, 46, 53, 0.72) 45%, rgba(26, 46, 53, 0.25) 100%);
}

.home-parallax .container {
    position: relative;
    z-index: 1;
}

.home-parallax-conteudo {
    max-width: 560px;
}

.home-parallax-invertida .home-parallax-conteudo {
    margin-left: auto;
}

.home-parallax .home-texto {
    color: rgba(255, 255, 255, 0.85);
}

.home-parallax .home-lista li {
    color: #fff;
}

    .home-parallax .home-lista li::before {
        background: rgba(255, 255, 255, 0.18);
        color: #fff;
    }

/* No celular o texto ocupa a largura toda: escurece por igual. */
@media (max-width: 767.98px) {
    .home-parallax-fundo::after,
    .home-parallax-invertida .home-parallax-fundo::after {
        background: rgba(26, 46, 53, 0.8);
    }
}

.home-btn-vidro {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(6px);
}

    .home-btn-vidro:hover {
        background: rgba(255, 255, 255, 0.22);
        color: #fff;
    }

/* ---------- Rede SociAU ---------- */
.home-sociau {
    padding: 5rem 0 4rem;
    background: linear-gradient(135deg, var(--pet-primary) 0%, var(--pet-secondary) 100%);
    overflow: hidden;
    overflow: clip; /* mesmo motivo da moldura: hidden prenderia o "surgir" dos textos */
}

.home-sociau-topo {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

    .home-sociau-topo .home-titulo {
        max-width: 36rem;
        margin-bottom: 0;
    }

.home-faixa {
    /* As pontas somem no fundo, em vez de cortar a foto seca. */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    overflow-x: auto;
    scrollbar-width: none;
}

    .home-faixa::-webkit-scrollbar {
        display: none;
    }

/* A segunda cópia só existe para emendar a animação. Parada, repetiria tudo. */
@media (prefers-reduced-motion: reduce) {
    .home-faixa-grupo + .home-faixa-grupo {
        display: none;
    }
}

.home-faixa-trilho {
    display: flex;
    width: max-content;
    padding: 0.5rem 0;
}

/* Cada cópia da lista é um grupo com o mesmo respiro no fim: assim as duas
   têm a mesma largura e o zigue-zague começa igual nas duas. */
.home-faixa-grupo {
    display: flex;
    align-items: flex-start; /* sem isso as ímpares esticam e o zigue-zague some */
    gap: 1rem;
    padding-right: 1rem;
}

.home-faixa-foto {
    flex: 0 0 auto;
    width: clamp(170px, 18vw, 230px);
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    transition: transform 0.25s ease;
}

    .home-faixa-foto:nth-child(even) {
        margin-top: 1.5rem;
    }

    .home-faixa-foto:hover {
        transform: scale(1.03);
    }

    .home-faixa-foto img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

@media (prefers-reduced-motion: no-preference) {
    .home-faixa {
        overflow: hidden;
    }

    /* O trilho tem a lista duas vezes: andar metade dele emenda sem pulo. */
    .home-faixa-trilho {
        animation: home-faixa 60s linear infinite;
    }

    .home-faixa:hover .home-faixa-trilho,
    .home-faixa:focus-within .home-faixa-trilho {
        animation-play-state: paused;
    }
}

@keyframes home-faixa {
    to { transform: translateX(-50%); }
}

/* ---------- Especialidades ---------- */
.home-especialidades {
    padding: 6rem 0;
    background: #fff;
}

.home-cabecalho {
    max-width: 40rem;
    margin: 0 auto 3rem;
    text-align: center;
}

.home-especialidades-grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .home-especialidades-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .home-especialidades-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.home-especialidade {
    padding: 1.75rem;
    border-radius: 20px;
    background: var(--pet-bg-warm);
    border: 1px solid #e6eff1;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

    .home-especialidade:hover {
        transform: translateY(-4px);
        border-color: var(--pet-accent);
        box-shadow: var(--shadow-md);
    }

    .home-especialidade h3 {
        margin: 1.1rem 0 0.5rem;
        font-size: 1.15rem;
        font-weight: 800;
        color: var(--pet-primary);
    }

    .home-especialidade p {
        margin: 0;
        line-height: 1.6;
        color: var(--pet-text-muted);
    }

/* ---------- Equipe ---------- */
.home-equipe {
    padding: 6rem 0;
    background: #fff;
}

.home-equipe-card {
    display: grid;
    gap: 2.5rem;
    align-items: center;
    padding: clamp(1.5rem, 4vw, 3rem);
    border-radius: 32px;
    background: var(--gradient-hero);
    border: 1px solid #e2eff1;
}

@media (min-width: 992px) {
    .home-equipe-card {
        grid-template-columns: 300px 1fr;
        gap: 3.5rem;
    }
}

.home-equipe-foto {
    position: relative;
    width: min(280px, 100%);
    margin: 0 auto;
}

    .home-equipe-foto img {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        object-fit: cover;
        border-radius: 28px;
        box-shadow: var(--home-sombra);
    }

.home-equipe-selo {
    position: absolute;
    right: -10px;
    bottom: -10px;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    color: var(--pet-accent-dark);
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
}

.home-equipe-registro {
    margin-top: -0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--pet-accent-dark);
}

.home-equipe-destaque {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0 0;
    padding: 0.7rem 1.1rem;
    border-radius: 14px;
    background: #fff;
    font-weight: 700;
    color: var(--pet-primary);
}

    .home-equipe-destaque .bi {
        color: var(--pet-coral);
    }

/* ---------- Movimento ligado à rolagem ---------- */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        /* Entra suave quando chega na tela. */
        .home-revelar {
            animation: home-revelar linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 40%;
        }

        /* O fundo anda ao contrário enquanto a seção passa pela tela. */
        .home-parallax-fundo {
            animation: home-parallax linear both;
            animation-timeline: --home-secao;
            animation-range: cover;
        }
    }
}

@keyframes home-revelar {
    from {
        opacity: 0;
        translate: 0 32px;
    }

    to {
        opacity: 1;
        translate: 0 0;
    }
}

/* ±22% da camada (que tem 180% da altura da seção) cabe na sobra de 40%:
   a borda da foto nunca aparece, e o fundo corre uns 40% mais devagar que o texto. */
@keyframes home-parallax {
    from { translate: 0 -22%; }
    to { translate: 0 22%; }
}
