/* ==========================================================
   VARIÁVEIS GERAIS
   ========================================================== */

:root {
    --main-color: #301f15;
    /* tom de vermelho-terra, ligado à raça Sindi */
    --accent-color: #2C1E14;
    /* dourado suave */
    --bg-color: #f7e7d7;
    /* fundo off-white */
    --text-color: #2b2b2b;
    --border-color: rgba(0, 0, 0, 0.1);
    --header-bg: #824900;
    /* marrom escuro elegante */
    --font-serif: "Ancizar Serif", serif;
    --font-sans: "Ancizar Serif", serif;
    font-size: 10px;
    --box-shadow: #b5b6b9
}

/* ==========================================================
   RESET E BASE
   ========================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
    transition: 0.3s linear;
    font-family: "PT Serif", monospace;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.section {
    padding: 0rem 2rem;
    margin: 0 auto;
    max-width: 1200px;
}

/* ==========================================================
   HEADER
   ========================================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--header-bg);
    display: flex;
    align-items: center;
    justify-content: flex-start;;
    transition: all 0.8s ease;
    z-index: 1000;
    height: 180px;
    transform-origin: top;
}

/* Quando o usuário rolar a página */
.header.scrolled {
    height: 95px;
    background: #3a1f10;
}

.header section {
    display: flex;
    align-items: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.svg-link {
    width: 35px;
    height: 35px;
    margin-right: 50px;
    color: white
}

.svg-link:hover {
    border-bottom: 0.4rem solid var(--accent-color);
    padding-bottom: 1.5px;
    font-size: 1.5rem;
    transition: ease-out 0.6s;
}

.navbar {
    position: absolute;
    left: 55%;
    transform: translateX(-50%); /* centraliza perfeitamente no header */
}

.navbar ul {
    display: flex;
    list-style: none;
    align-items: center;
    justify-content: center;
    margin-right: 0rem;
}

.navbar a {
    color: #f8ecdc;
    font-size: 2.9rem;
    font-family: var(--font-serif);
    font-weight: 600;
    margin: 0 1.5rem;
    position: relative;
}

.navbar a::after {
    content: "";
    display: block;
    width: 0%;
    height: 3px;
    background-color: rgba(187, 144, 35, 0.8);
    position: absolute;
    bottom: -4px;
    left: 0;
    transition: width 0.3s ease;
}

.navbar a:hover::after {
    width: 100%;
}

.navbar a:hover {
    color: rgba(202, 156, 39, 0.8);
    border-bottom: 0.2rem solid #a4753c;
    padding-bottom: 0.5;
    font-size: 35px;
}

.header-social {
    position: absolute;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-social .social-instagram {
    display: flex;
    flex-direction: column; /* ← ícone em cima, texto embaixo */
    align-items: center;
    gap: 4px;
    width: auto;
    height: auto;
}

.header-social .social-instagram img {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease; /* ← suaviza o crescimento */
}

.header-social .social-instagram:hover img {
    transform: scale(1.2); /* ← cresce 20% ao passar o mouse */
}

.header-social .social-instagram:hover .social-label {
    color: #d4a574; /* ← muda a cor do texto junto */
    opacity: 1;
}

.social-label {
    color: #f5ddb8;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-style: italic;
    opacity: 0.85;
    white-space: nowrap;
}
.logo {
    display: flex;
    flex-direction: row;  /* ← lado a lado */
    align-items: center;
    gap: 1.2rem;
    margin-left: 140px;
}

.logo img {
    width: 110px;
    cursor: pointer;
    height: auto;
    margin-left: 0;      /* ← remove o margin-left antigo */
    margin-right: 0;
    border-radius: 100px;
    transition: all 0.6s ease;
    object-fit: contain;
}

.logo-slogan {
    color: #f5ddb8;
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-style: italic;
    text-align: left;
    line-height: 1.5;
    opacity: 0.85;
    letter-spacing: 0.03em;
    border-left: 2px solid rgba(245, 221, 184, 0.3); /* ← divisória sutil */
    padding-left: 1.2rem;
}

.header.scrolled .logo img {
    width: 80px;
    margin-top: 7px;
    margin-bottom: 4px;
}

.logo img:hover {
    filter: brightness(90%);
}

/*--------------------------------------------------------------
# Touros
--------------------------------------------------------------*/

/* Container geral */
.bull-page {
    margin: 0 auto;
    padding: 40px 20px;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cabeçalho */
.bull-header {
    background: var(--header-bg);
    color: #f5e9dc;
    padding: 25px;
    text-align: center;
    margin-top: 15rem;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bull-header h1 {
    font-size: 3.5rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-family: var(--font-serif);
}

/* Botão Voltar */
.back-button {
    background: #f5e9dc;
    color: #4a2c19;
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    font-size: 2rem;
    cursor: pointer;
    transition: 0.3s;
}

.back-button:hover {
    background: #c99b63;
    color: #fff;
    transform: translateY(-2px);
}

/* Conteúdo principal */
.bull-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.bull-image-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 3px solid #4a2c19;
}

.bull-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bull-info {
    background: #fff5eb;
    padding: 30px;
    border-radius: 15px;
    border: 3px solid #4a2c19;
}

.bull-info h2 {
    color: #4a2c19;
    margin-bottom: 20px;
    font-size: 2.5rem;
    font-family: var(--font-serif);
}

.bull-info p {
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 17px;
    font-family: var(--font-serif);
}

/* Detalhes */
.bull-details {
    background: #f5e9dc;
    padding: 20px;
    border-radius: 10px;
    margin: 25px 0;
}

.bull-details strong {
    color: #4a2c19;
}

/* Preço */
.price-tag {
    background: #c99b63;
    color: #4a2c19;
    text-align: center;
    font-weight: 700;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.8rem;
    font-family: var(--font-serif);
}

/* Botão contato */
.contact-button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 25px;
    background: #4a2c19;
    color: #f5e9dc;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 15px;
    font-family: var(--font-serif);
}

.contact-button:hover {
    background: #c99b63;
    color: #4a2c19;
    transform: scale(1.05);
}

/* Genealogia */
.genealogy-section {
    margin-top: 60px;
}

.genealogy-title {
    text-align: center;
    font-size: 2.5rem;
    color: #4a2c19;
    background: #fff5eb;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 40px;
    border: 3px solid #4a2c19;
}

.genealogy-tree {
    background: var(--bg-color);
    padding: 22px;
    border-radius: 15px;
    border: 3px solid #4a2c19;
    overflow-x: auto;
}

.tree-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 950px;
    font-family: var(--font-serif);
}

.tree-level {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 0 25px;
    font-size: 15px;
}

.tree-node {
    background: #4a2c19;
    color: #f5e9dc;
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    min-width: 180px;
    font-weight: 600;

}

.tree-node.main {
    background: #c99b63;
    color: #4a2c19;
    font-size: 15px;
}

.tree-node.parent {
    background: #6b3f25;
}

.tree-node.grandparent {
    background: #9e6b46;
}

/* Emoji sexo */
.sexo {
    font-size: 2.2rem;   /* aumenta só o emoji */
    margin-right: 8px;
    vertical-align: middle;
}

/* Cor opcional */
.sexo.macho {
    color: #49d2d2;
}

.sexo.femea {
    color: #d2608a;
}

/* Responsividade */
@media (max-width: 950px) {
    .bull-content {
        grid-template-columns: 1fr;
    }

    .bull-header h1 {
        font-size: 2rem;
    }

    .genealogy-tree {
        padding: 20px;
    }
}

/* ==========================================================
   RESPONSIVIDADE - TELAS MENORES QUE 768px (VERSÃO CORRIGIDA)
   ========================================================== */

/* Esconde elementos mobile no desktop */
.menu-toggle,
.overlay {
    display: none;
}

.svg-link {
    display: none;
}

@media (max-width: 1024px) {

    :root {
        font-size: 8px;
    }

    body {
        overflow-x: hidden;
        margin: 0;
        padding: 0;
    }

    /* ---------- HEADER ---------- */
    header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.2rem 1.5rem;
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
        background-color: #3a2414;
        z-index: 1000;
        margin-bottom: 2rem;
    }

    header section {
        display: contents; /* Remove o wrapper section do fluxo */
    }

    /* MENU HAMBURGUER - VISÍVEL */
    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 1002;
        position: relative;
    }

    .menu-toggle span {
        width: 28px;
        height: 3px;
        background-color: #fff;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* Animação hamburguer → X */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* LOGO CENTRALIZADA */
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }

    .logo img {
        width: 70px;
        height: auto;
    }

    /* ÍCONE HOME - VISÍVEL */
    .svg-link {
        display: flex !important;
        align-items: center;
    }

    .svg-link svg {
        display: block !important;
        width: 32px;
        height: 32px;
    }

    /* NAVBAR - MENU LATERAL */
    nav.navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background-color: #3a2414;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        gap: 2.5rem;
        transition: right 0.4s ease;
        z-index: 1001;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        padding: 2rem 0;
    }

    nav.navbar.active {
        right: 0;
    }

    .navbar a {
        font-size: 2.2rem;
        padding: 2rem 3rem;
        color: #fff;
        text-decoration: none;
        transition: all 0.3s;
        width: 60%;
        text-align: center;
        border-bottom: 3px solid var(--accent-color);
        position: relative;
    }

    /* Cria a linha dourada mais curta */
    .navbar a::after {
        content: "";
        position: absolute;
        bottom: 0.8rem;
        /* distância do texto */
        left: 50%;
        transform: translateX(-50%);
        width: 40%;
        /* diminui o comprimento da linha (ajuste como quiser: 30%, 50%...) */
        height: 2px;
        background-color: var(--accent-color);
        transition: width 0.3s;
    }

    /* Efeito hover opcional */
    .navbar a:hover::after {
        width: 70%;
        /* anima a linha crescendo */
    }

    .navbar a:last-child {
        border-bottom: none;
    }

    .navbar a:hover {
        color: #d4a574;
        background-color: rgba(212, 165, 116, 0.1);
    }

    /* OVERLAY */
    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.6);
        z-index: 999;
    }

    .overlay.active {
        display: block;
    }
}