/* ==========================================================
   VARIÁVEIS GERAIS
   ========================================================== */

:root {
    --main-color: #301f15;
    --accent-color: #2C1E14;
    --bg-color: #f7e7d7;
    --text-color: #2b2b2b;
    --border-color: rgba(0, 0, 0, 0.1);
    --header-bg: #824900;
    --font-serif: "Ancizar Serif", serif;
    --font-sans: "Ancizar Serif", serif; /* ✅ CORRIGIDO: era "Inter" */
    font-size: 10px;
    --box-shadow: #b5b6b9;
    --cointainer: #3e2c1e;
    --texto-cointainer: #e0b274;
}

/* ==========================================================
   RESET E BASE
   ========================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
    transition: 0.3s linear;
    font-family: "Ancizar Serif", serif; /* ✅ CORRIGIDO: era PT Serif */
}

body {
    font-family: var(--font-serif);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 180px;
}

.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;
}

.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%);
}

.navbar ul {
    display: flex;
    list-style: none;
    align-items: center;
    justify-content: center;
}

.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%;
}

/* ✅ CORRIGIDO: font-size igual ao normal para não saltar */
.navbar a:hover {
    color: rgba(202, 156, 39, 0.8);
    border-bottom: 0.2rem solid #a4753c;
    padding-bottom: 0.5px;
    font-size: 3.3rem;
}

/* ---------- HEADER SOCIAL ---------- */

.header-social {
    position: absolute;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-social .social-instagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: auto;
    height: auto;
}

.header-social .social-instagram img {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
}

.header-social .social-instagram:hover img {
    transform: scale(1.2);
}

.header-social .social-instagram:hover .social-label {
    color: #d4a574;
    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 ---------- */

.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.2rem;
    margin-left: 60px;
    transition: all 0.8s ease;
}

.logo img {
    width: 110px;
    cursor: pointer;
    height: auto;
    border-radius: 100px;
    transition: all 0.8s ease;
    object-fit: contain;
}

/* ✅ CORRIGIDO: white-space nowrap */
.logo-slogan {
    color: #f5ddb8;
    font-family: "Ancizar Serif", 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);
    padding-left: 1.2rem;
    white-space: nowrap;
    transition: all 0.8s ease;
}

/* ✅ CORRIGIDO: scroll move logo + slogan para direita */
.header.scrolled .logo {
    transform: translateX(20px);
}

.header.scrolled .logo img {
    width: 80px;
}

.header.scrolled .logo-slogan {
    white-space: normal;
    font-size: 1.3rem;
    max-width: 150px;
    transform: translateX(20px);
}

.logo img:hover {
    filter: brightness(90%);
}

/* ==========================================================
   VENDAS
   ========================================================== */

.vendas {
    padding: 50px 3rem 3rem;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
}

.titulo-vendas {
    font-family: var(--font-serif);
    font-size: 7rem;
    color: var(--header-bg);
    margin-bottom: 4rem;
    font-weight: bold;
}

.titulo-vendas:after {
    content: "";
    display: flex;
    width: 440px;
    height: 5px;
    background-color: var(--accent-color);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Filtros */
.filtros {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.btn-filtro {
    padding: 1.2rem 3rem;
    background: var(--header-bg);
    color: var(--bg-color);
    border: none;
    border-radius: 12px;
    font-size: 2rem;
    cursor: pointer;
    font-family: var(--font-serif);
    font-weight: 600;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.btn-filtro:hover {
    background: var(--texto-cointainer);
    color: var(--cointainer);
    transform: scale(1.05);
    opacity: 1;
    box-shadow: 0 15px 15px -3px rgba(0, 0, 0, 0.2);
}

.btn-filtro.ativo {
    transform: scale(1.05);
    box-shadow: 0 15px 15px -3px rgba(0, 0, 0, 0.2);
    opacity: 1;
}

/* Lista de Touros */
.lista-touros {
    display: none;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
}

.lista-touros.visivel {
    display: flex;
}

/* Mensagem vazia */
.mensagem-vazia {
    display: none;
    padding: 6rem 0;
    font-size: 2.5rem;
    color: var(--text-color);
    font-family: var(--font-serif);
}

.mensagem-vazia.visivel {
    display: block;
}

/* ==========================================================
   CARD DO TOURO
   ========================================================== */

.touro-card {
    width: 320px;
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.touro-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.touro-card h3 {
    font-size: 2.4rem;
    font-family: var(--font-serif);
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: bold;
}

.touro-card p {
    font-size: 1.6rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-family: var(--font-serif);
}

.touro-card .preco {
    font-size: 2rem;
    color: var(--texto-cointainer);
    font-weight: 600;
    margin: 1.5rem 0;
    font-family: var(--font-serif);
}

.touro-card a {
    text-decoration: none;
    display: block;
    width: 100%;
}

.btn-detalhes {
    width: 100%;
    padding: 1rem;
    background: var(--main-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.6rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    font-family: var(--font-serif);
}

.btn-detalhes:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* ==========================================================
   IMG-WRAPPER — overlay VENDIDO
   ========================================================== */

.img-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
}

.img-wrapper img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: filter 0.4s ease;
}

.sold-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.sold-overlay span {
    color: #fff;
    font-size: 2.4rem;
    font-family: var(--font-serif);
    font-weight: 800;
    letter-spacing: 5px;
    text-transform: uppercase;
    background: rgba(160, 30, 20, 0.88);
    padding: 10px 26px;
    border-radius: 6px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.touro-card.vendido .img-wrapper img {
    filter: grayscale(70%) blur(2px) brightness(0.75);
}

.touro-card.vendido .sold-overlay {
    opacity: 1;
}

.touro-card.vendido .btn-detalhes {
    background: #999 !important;
    color: #eee !important;
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    transform: none !important;
}

/* ==========================================================
   FOOTER
   ========================================================== */

.footer {
    margin-top: auto;
    background: linear-gradient(135deg, #2f1e14 0%, #824900 50%, #2f1e14 100%);
    color: #fff;
    padding: 20px 0 0;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr; /* ← CORRIGIDO: era 2fr 1fr 1.5fr */
    gap: 20px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.brand-logo {
    font-size: 32px;
    font-family: var(--font-serif);
    font-weight: 800;
    color: var(--bg-color);
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.brand-tagline {
    color: var(--bg-color);
    font-size: 20px;
    font-family: var(--font-serif);
    margin-bottom: 20px;
    opacity: 0.9;
}

.cattle-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(212, 165, 116, 0.15);
    border-left: 4px solid var(--bg-color);
    border-radius: 4px;
    margin-top: 14px;
}

.cattle-badge span {
    font-size: 20px;
}

.cattle-badge-text {
    display: flex;
    flex-direction: column;
}

.cattle-badge-title {
    font-weight: 700;
    color: var(--bg-color);
    font-size: 16px;
    font-family: var(--font-serif);
}

.cattle-badge-subtitle {
    font-size: 13px;
    color: #c9b596;
    font-family: var(--font-serif);
}

/* ✅ CORRIGIDO: padding-left de 350px para 50px */
.footer-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding-left: 50px;
    margin-left: auto; /* ← empurra pro canto direito */
    justify-content: space-between;
    padding-bottom: 40px;
}

.footer-section.contact {
    align-items: flex-start;
    text-align: left;
    gap: 10px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--bg-color);
    font-size: 14px;
    justify-content: flex-start;
    font-family: var(--font-serif);
}

.contact-item span {
    color: var(--bg-color);
    font-family: var(--font-serif);
}

.contact-item a {
    color: var(--bg-color);
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    font-family: var(--font-serif);
}

.contact-item a:hover {
    color: rgba(225, 81, 36, 1);
    text-decoration: underline;
}

.footer-section h3 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--bg-color);
    font-weight: 700;
    text-transform: uppercase;
    font-family: var(--font-serif);
    letter-spacing: 1.5px;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 30px;
    width: 120px;
    height: 2px;
    background: var(--main-color);
}

.social-links {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 25px;
    margin-right: -60rem;
    padding-bottom: 20px;
    font-family: var(--font-serif);
}

.social-links a {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: rgba(212, 165, 116, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4a574;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(212, 165, 116, 0.3);
    font-weight: bold;
    font-size: 26px;
}

.social-instagram {
    width: 65px;
    height: 65px;
    border-radius: 8px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.social-instagram img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    border-radius: 8px;
}

.social-links a:hover {
    background: var(--bg-color);
    color: #2c1810;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(212, 165, 116, 0.3);
    border-color: #d4a574;
}

.footer-bottom {
    border-top: 2px solid rgba(212, 165, 116, 0.2);
    padding: 12px 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    width: 100%;
    margin: 0;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--bg-color);
    font-size: 14px;
    font-family: var(--font-serif);
}

/* ==========================================================
   DESKTOP - ESCONDE ELEMENTOS MOBILE
   ========================================================== */

.menu-toggle,
.overlay {
    display: none;
}

.svg-link {
    display: none;
}

/* ==========================================================
   RESPONSIVIDADE - MAX-WIDTH 1024px
   ========================================================== */

   @media (max-width: 1400px) {

    .navbar a {
        font-size: 2.2rem;
        left: 6%;
    }

    .logo {
        margin-left: 18px;
    }

    .logo img {
        width: 90px;
    }

    .logo-slogan {
        font-size: 1.5rem;
    }

}

@media (max-width: 1024px) {

    :root {
        font-size: 8px;
    }

    body {
        overflow-x: hidden;
        margin: 0;
        padding: 0;
        padding-top: 80px; /* ✅ acompanha header menor no mobile */
    }

    /* ---------- HEADER ---------- */
    header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.2rem 1.5rem;
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
        height: 80px;
        background-color: #3a2414;
        z-index: 1000;
    }

    header section {
        display: contents;
    }

    /* Slogan menor no mobile */
    .logo-slogan {
        font-size: 1.1rem;
        border-left: 1px solid rgba(245, 221, 184, 0.3);
        padding-left: 0.8rem;
        white-space: nowrap;
    }

    /* Ícones sociais no canto direito */
    .header-social {
        display: flex;
        position: static;
        gap: 8px;
        align-items: center;
        margin-left: auto;
    }

    .header-social .social-instagram img {
        width: 32px;
        height: 32px;
    }

    .social-label {
        display: none;
    }

    /* ---------- HAMBURGUER ---------- */
    .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;
    }

    .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 ---------- */
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.8rem;
        margin-left: 0;
    }

    /* Cancela animação de scroll no mobile */
    .header.scrolled .logo {
        transform: translateX(-50%);
    }

    .header.scrolled .logo-slogan {
        transform: none;
    }

    .logo img {
        width: 45px;
        height: auto;
        margin: 0;
    }

    /* ---------- NAVBAR - ESCONDIDA ATÉ CLICAR ---------- */
    nav.navbar {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        left: auto !important;
        transform: none !important;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background-color: #3a2414;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        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 !important;
    }

    .navbar a {
        font-size: 2.2rem;
        padding: 2rem 3rem;
        color: #fff;
        text-decoration: none;
        width: 60%;
        text-align: center;
        border-bottom: 3px solid rgba(44, 30, 20, 0.4);
        position: relative;
    }

    .navbar a::after {
        content: "";
        position: absolute;
        bottom: 0.8rem;
        left: 50%;
        transform: translateX(-50%);
        width: 40%;
        height: 2px;
        background-color: var(--accent-color);
        transition: width 0.3s;
    }

    .navbar a:hover::after {
        width: 70%;
    }

    .navbar a:last-child {
        border-bottom: none;
    }

    .navbar a:hover {
        color: #d4a574;
        background-color: rgba(212, 165, 116, 0.1);
        font-size: 2.2rem;
    }

    /* ---------- 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;
    }

    /* ---------- VENDAS ---------- */
    .vendas {
        padding: 3rem 2rem;
    }

    .titulo-vendas {
        font-size: 4.5rem;
    }

    .titulo-vendas:after {
        width: 220px;
    }

    .filtros {
        flex-wrap: wrap;
        gap: 1.2rem;
    }

    .btn-filtro {
        font-size: 1.6rem;
        padding: 1rem 2rem;
    }

    .lista-touros {
        gap: 1.5rem;
    }

    .touro-card {
        width: 100%;
        max-width: 360px;
    }

    /* ---------- FOOTER ---------- */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 0 20px;
    }

    .footer-section {
        padding-left: 0;
        align-items: center;
    }

    .footer-section.contact {
        text-align: center;
    }

    .contact-item {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
        margin-right: 0;
    }

    .footer-bottom-content {
        flex-direction: column;
        font-size: 12px;
    }
}