/* ==========================================================
   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;
    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;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.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: 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);
    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%);
}

/* ==========================================================
   HOMENAGEM
   ========================================================== */

.home-container {
    background-position: center;
    background-size: cover;
    min-height: 70vh;
    margin-top: 125px;
    display: flex;
    align-items: center;
    padding: 4rem 6rem;
    margin-bottom: 6rem;
}

.texto {
    background-color: #fefcf7;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E"),
        repeating-linear-gradient(
            transparent,
            transparent 38px,
            rgba(139, 90, 43, 0.06) 38px,
            rgba(139, 90, 43, 0.06) 39px
        );
    border: 1px solid rgba(139, 90, 43, 0.25);
    box-shadow:
        inset 0 0 80px rgba(139, 90, 43, 0.06),
        0 6px 30px rgba(0, 0, 0, 0.12);
    padding: 5rem 4rem;
    border-radius: 2px;
    position: relative;
    flex: 1;
    font-family: var(--font-serif);
}

.texto p {
    color: var(--text-color);
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.8;
    padding: 1rem 0;
    margin-left: 4rem;
    text-align: justify;
    margin-bottom: 2rem;
}

/* Manchas de envelhecimento nos cantos */
.texto::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at top left, rgba(139, 90, 43, 0.10) 0%, transparent 30%),
        radial-gradient(ellipse at bottom right, rgba(100, 60, 20, 0.08) 0%, transparent 30%);
    pointer-events: none;
    border-radius: inherit;
}

.home-container section {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.content {
    max-width: 75rem;
    padding: 0;
    margin: 0;
    align-items: flex-start;
    gap: 2rem;
}

.content h3 {
    text-align: center;
    font-size: 5.5rem;
    color: var(--main-color);
    margin-bottom: 3rem;
    /* ✅ CORRIGIDO: margin-top reduzido de 15rem */
    margin-top: 4rem;
    margin-left: 4rem;
    position: relative;
    font-family: var(--font-serif);
}

.content h3::after {
    content: "";
    display: block;
    width: 280px;
    height: 5px;
    background-color: var(--accent-color);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.content h2 {
    color: #000;
    font-size: 3rem;
    margin-top: 2rem;
    margin-left: 4rem;
    margin-bottom: 30px;
    font-family: var(--font-serif);
}

.content span {
    margin-right: 5px;
    text-shadow:
        0 0 5px rgb(255, 255, 255),
        0 0 10px rgb(172, 193, 34),
        0 0 20px rgb(228, 224, 20);
}

.foto img {
    height: 1080px;
    width: 600px;
    margin-left: 85rem;
    margin-top: -130rem;
    border-radius: 8px;
    box-shadow: 13px 6px 15px 5px #5E5E5E;
}

/* ==========================================================
   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;
    }

    /* ---------- 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;
    }

    /* ---------- HOMENAGEM ---------- */
    .home-container {
        flex-direction: column;
        padding: 2rem;
        margin-top: 80px;
        margin-bottom: 4rem;
    }

    .texto {
        padding: 3rem 2rem;
        width: 100%;
    }

    .texto p {
        font-size: 1.5rem;
        line-height: 1.7;
        margin: 0 0 2rem 0;
        padding: 0;
        text-align: justify;
    }

    .content {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0;
        text-align: center;
    }

    .content h3 {
        font-size: 2.8rem;
        margin: 3rem 0 1rem 0;
    }

    .content h2 {
        font-size: 1.9rem;
        margin: 1rem 0;
    }

    .foto {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 3rem;
    }

    .foto img {
        width: 80%;
        height: auto;
        margin: 0;
        border-radius: 12px;
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
        object-fit: cover;
    }

    /* ---------- 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;
    }
}