/* Base */
:root {
    --color-navy-950: #061b46;
    --color-navy-900: #092455;
    --color-navy-800: #12346f;
    --color-blue-100: #e9f1fb;
    --color-gold-500: #cf9f1c;
    --color-gold-400: #dfb637;
    --color-red-500: #e62c2d;
    --color-white: #ffffff;
    --color-cream: #f8f6f0;
    --color-text: #27334a;
    --color-muted: #68738a;
    --color-border: rgba(9, 36, 85, 0.12);
    --shadow-soft: 0 24px 60px rgba(6, 27, 70, 0.14);
    --radius-large: 28px;
    --radius-medium: 18px;
    --container-width: 1180px;
    --transition: 180ms ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-text);
    background: var(--color-white);
    font-family: "DM Sans", sans-serif;
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

img {
    display: block;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: min(calc(100% - 40px), var(--container-width));
    margin-inline: auto;
}

.section {
    padding: 108px 0;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--color-gold-400);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.eyebrow--dark {
    color: var(--color-navy-800);
}

h1,
h2,
h3 {
    margin-top: 0;
    font-family: "Manrope", sans-serif;
    line-height: 1.12;
}

h1 {
    max-width: 780px;
    margin-bottom: 24px;
    color: var(--color-white);
    font-size: clamp(3rem, 7vw, 6.5rem);
    letter-spacing: -0.055em;
}

h2 {
    margin-bottom: 22px;
    color: var(--color-navy-950);
    font-size: clamp(2.25rem, 4.5vw, 4.4rem);
    letter-spacing: -0.045em;
}

h3 {
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    transition:
        transform var(--transition),
        background-color var(--transition),
        border-color var(--transition);
}

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

.button--primary {
    color: var(--color-navy-950);
    background: var(--color-white);
}

.button--outline {
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.button--gold {
    color: var(--color-navy-950);
    background: var(--color-gold-400);
}

.button--header {
    min-height: 44px;
    color: var(--color-white);
    background: var(--color-navy-900);
}

.text-link {
    display: inline-flex;
    margin-top: 18px;
    color: var(--color-white);
    font-weight: 800;
    border-bottom: 1px solid currentColor;
}

.text-link--dark {
    color: var(--color-navy-900);
}

/* Header */
.site-header {
    position: fixed;
    z-index: 50;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(9, 36, 85, 0.08);
    backdrop-filter: blur(16px);
}

.site-header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    min-height: 82px;
    height: 82px;
    gap: 36px;
}

/* Mantém a logo maior sem alterar a altura do header */
.site-header__brand {
    display: flex;
    align-items: center;
    width: 170px;
    height: 82px;
    overflow: hidden;
}

.site-header__brand img {
    display: block;
    width: 100%;
    height: 170px;
    max-height: 170px;
    object-fit: contain;
    object-position: left center;
}

.site-header__nav {
    display: flex;
    justify-content: center;
    gap: 32px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-navy-950);
}

.site-header__nav a {
    position: relative;
}

.site-header__nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 2px;
    background: var(--color-gold-500);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition);
}

.site-header__nav a:hover::after {
    transform: scaleX(1);
}

.site-header__toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 0;
    border-radius: 50%;
    background: var(--color-blue-100);
}

.site-header__toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: var(--color-navy-950);
}

/* Hero */
/* Hero */
.hero-section {
    position: relative;
    display: flex;
    min-height: 830px;
    padding-top: 82px;
    overflow: hidden;
    background:
        linear-gradient(
            100deg,
            rgba(6, 27, 70, 0.95) 0%,
            rgba(6, 27, 70, 0.76) 43%,
            rgba(6, 27, 70, 0.18) 100%
        ),
        url("assets/fundohero.jpg") center / cover no-repeat;
}

.hero-section__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 80% 22%,
            rgba(223, 182, 55, 0.22),
            transparent 34%
        ),
        linear-gradient(
            to top,
            rgba(6, 27, 70, 0.88),
            transparent 40%
        );
}

.hero-section__content {
    position: relative;
    z-index: 2;
    align-self: stretch;

    display: flex;
    flex-direction: column;
    justify-content: center;

    /*
      O bloco de estatísticas ocupa aproximadamente 120px.
      Este padding inferior reserva o mesmo espaço visual
      existente entre o conteúdo e as estatísticas.
    */
    padding-top: 110px;
    padding-bottom: 230px;
}

.hero-section__content > * {
    max-width: 760px;
}

.hero-section__text {
    max-width: 690px;
    margin: 0 0 34px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.18rem;
}

.hero-section__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-section__stats {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 0;
    left: 0;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    color: var(--color-white);
    background: rgba(6, 27, 70, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
    backdrop-filter: blur(18px);
}

.hero-stat {
    padding: 26px 32px;
}

.hero-stat + .hero-stat {
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-stat strong,
.hero-stat span {
    display: block;
}

.hero-stat strong {
    margin-bottom: 4px;
    font-family: "Manrope", sans-serif;
    font-size: 1.45rem;
}

.hero-stat span {
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.92rem;
}

@media (max-width: 1024px) {
    .site-header__inner {
        gap: 24px;
    }

    .site-header__brand {
        width: 150px;
    }

    .site-header__brand img {
        height: 66px;
        max-height: 66px;
    }

    .hero-section {
        min-height: 760px;
    }

    .hero-section__content {
        padding-top: 90px;
        padding-bottom: 210px;
    }
}

@media (max-width: 768px) {
    .site-header__inner {
        grid-template-columns: auto 1fr auto;
        height: 82px;
        min-height: 82px;
        gap: 16px;
    }

    .site-header__brand {
        width: 132px;
        height: 82px;
    }

    .site-header__brand img {
        height: 60px;
        max-height: 60px;
    }

    .hero-section {
        min-height: auto;
        padding-top: 82px;
        padding-bottom: 0;
    }

    .hero-section__content {
        align-self: auto;
        justify-content: flex-start;
        padding-top: 72px;
        padding-bottom: 190px;
    }

    .hero-section__stats {
        grid-template-columns: 1fr;
        border-radius: 20px 20px 0 0;
    }

    .hero-stat {
        padding: 18px 22px;
        text-align: center;
    }

    .hero-stat + .hero-stat {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }
}

@media (max-width: 520px) {
    .site-header__brand {
        width: 118px;
    }

    .site-header__brand img {
        height: 54px;
        max-height: 54px;
    }

    .hero-section__content {
        padding-top: 56px;
        padding-bottom: 210px;
    }

    .hero-section__text {
        font-size: 1rem;
    }

    .hero-section__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-section__actions .button {
        width: 100%;
        justify-content: center;
    }
}

/* Company */
.company-section {
    background: var(--color-cream);
}

.company-section__grid {
    display: grid;
    grid-template-columns: 1.06fr 0.94fr;
    align-items: center;
    gap: 78px;
}

.company-section__visual {
    position: relative;
}

.company-section__visual img {
    min-height: 550px;
    border-radius: var(--radius-large);
    object-fit: cover;
    box-shadow: var(--shadow-soft);
}

.company-section__badge {
    position: absolute;
    right: -30px;
    bottom: 34px;
    max-width: 270px;
    padding: 24px 28px;
    color: var(--color-white);
    background: var(--color-navy-900);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-soft);
}

.company-section__badge span,
.company-section__badge strong {
    display: block;
}

.company-section__badge span {
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
}

.company-section__content > p:not(.eyebrow) {
    color: var(--color-muted);
    font-size: 1.05rem;
}

.company-section__pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 34px;
}

.company-section__pillars article {
    padding: 20px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
}

.company-section__pillars span {
    color: var(--color-gold-500);
    font-weight: 800;
}

.company-section__pillars h3 {
    margin: 12px 0 6px;
    color: var(--color-navy-950);
    font-size: 1.1rem;
}

.company-section__pillars p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.88rem;
}

/* Segments */
.segments-section {
    background: var(--color-white);
}

.segments-section__heading {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
    gap: 60px;
    margin-bottom: 46px;
}

.segments-section__heading h2 {
    max-width: 760px;
    margin-bottom: 0;
}

.segments-section__heading > p {
    margin: 0 0 10px;
    color: var(--color-muted);
    font-size: 1.05rem;
}

.segments-section__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.segment-card {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    border-radius: var(--radius-large);
    background-position: center;
    background-size: cover;
}

.segment-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 27, 70, 0.95), rgba(6, 27, 70, 0.08) 72%);
    transition: background var(--transition);
}

.segment-card:hover::before {
    background: linear-gradient(to top, rgba(6, 27, 70, 0.98), rgba(6, 27, 70, 0.18) 78%);
}

.segment-card--apples {
    background-image: url("assets/macass.jpg");
}

.segment-card--grains {
    background-image: url("https://images.unsplash.com/photo-1574323347407-f5e1ad6d020b?auto=format&fit=crop&w=1400&q=85");
}

.segment-card--cheese {
    background-image: url("assets/queijos.png");
}

.segment-card--livestock {
    background-image: url("assets/pecuaria.jpg");
}

.segment-card__content {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 36px;
    color: var(--color-white);
}

.segment-card__number {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--color-gold-400);
    font-weight: 800;
}

.segment-card h3 {
    margin-bottom: 12px;
    font-size: 2rem;
}

.segment-card p {
    max-width: 520px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

/* Rural */
.rural-section {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.rural-section__background {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6, 27, 70, 0.82), rgba(6, 27, 70, 0.2)),
        url("https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=1800&q=85") center / cover no-repeat;
}

.rural-section__content {
    position: relative;
    z-index: 2;
}

.rural-section__card {
    max-width: 600px;
    padding: 54px;
    color: var(--color-white);
    background: rgba(6, 27, 70, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-large);
    backdrop-filter: blur(14px);
}

.rural-section__card h2 {
    color: var(--color-white);
    font-size: clamp(2.3rem, 4vw, 4rem);
}

.rural-section__card p {
    color: rgba(255, 255, 255, 0.78);
}

/* Gallery */
.gallery-section {
    background: var(--color-cream);
}

.gallery-section__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 40px;
}

.gallery-section__heading h2 {
    margin-bottom: 0;
}

.gallery-section__grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    grid-template-rows: repeat(2, 290px);
    gap: 18px;
}

.gallery-section__item {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-medium);
}

.gallery-section__item--wide {
    grid-row: 1 / 3;
}

.gallery-section__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.gallery-section__item:hover img {
    transform: scale(1.035);
}

/* Contact */
.contact-section {
    color: var(--color-white);
    background: var(--color-navy-950);
}

.contact-section__grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 90px;
}

.contact-section__intro h2 {
    color: var(--color-white);
}

.contact-section__intro > p:not(.eyebrow) {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
}

.contact-section__details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.contact-section__details article {
    padding: 28px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-medium);
}

.contact-section__details span,
.contact-section__details strong,
.contact-section__details p {
    display: block;
}

.contact-section__details span {
    margin-bottom: 12px;
    color: var(--color-gold-400);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.contact-section__details strong {
    margin-bottom: 6px;
    font-size: 1.08rem;
}

.contact-section__details p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Footer */
.site-footer {
    color: var(--color-white);
    background: #031232;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 36px;
    padding-top: 50px;
    padding-bottom: 34px;
}

.site-footer__brand img {
    width: 150px;
    margin-bottom: 16px;
}

.site-footer__brand p {
    margin: 0;
    color: rgba(255, 255, 255, 0.55);
}

.site-footer__links {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    font-weight: 700;
}

.site-footer__legal {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    padding-top: 28px;
    color: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.88rem;
}

.site-footer__legal p {
    margin: 0;
}

.floating-whatsapp {
    position: fixed;
    z-index: 40;
    right: 24px;
    bottom: 24px;
    display: inline-flex;
    align-items: center;
    min-height: 50px;
    padding: 0 22px;
    color: var(--color-white);
    background: #1d9d56;
    border-radius: 999px;
    font-weight: 800;
    box-shadow: 0 18px 40px rgba(6, 27, 70, 0.24);
    transition: transform var(--transition);
}

.floating-whatsapp:hover {
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 1040px) {
    .site-header__inner {
        grid-template-columns: auto auto 1fr;
    }

    .site-header__toggle {
        display: block;
        justify-self: end;
        order: 2;
    }

    .site-header__nav {
        position: fixed;
        top: 82px;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: center;
        padding: 36px 20px;
        background: var(--color-white);
        border-top: 1px solid var(--color-border);
        box-shadow: var(--shadow-soft);
    }

    .site-header__nav.is-open {
        display: flex;
    }

    .button--header {
        justify-self: end;
        order: 3;
    }

    .company-section__grid,
    .contact-section__grid {
        grid-template-columns: 1fr;
    }

    .company-section__badge {
        right: 24px;
    }

    .segments-section__heading {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 780px) {
    .section {
        padding: 78px 0;
    }

    .container {
        width: min(calc(100% - 28px), var(--container-width));
    }

    .site-header__inner {
        min-height: 72px;
        gap: 14px;
    }

    .site-header__brand {
        width: 112px;
    }

    .site-header__nav {
        top: 72px;
    }

    .button--header {
        display: none;
    }

    .site-header__inner {
        grid-template-columns: 1fr auto;
    }

    .hero-section {
        min-height: 760px;
        padding-top: 72px;
        background-position: 64% center;
    }

    .hero-section__content {
        padding-bottom: 220px;
    }

    .hero-section__text {
        font-size: 1rem;
    }

    .hero-section__stats {
        grid-template-columns: 1fr;
    }

    .hero-stat {
        padding: 14px 22px;
    }

    .hero-stat + .hero-stat {
        border-top: 1px solid rgba(255, 255, 255, 0.14);
        border-left: 0;
    }

    .company-section__grid {
        gap: 54px;
    }

    .company-section__visual img {
        min-height: 380px;
    }

    .company-section__badge {
        position: relative;
        right: auto;
        bottom: auto;
        max-width: none;
        margin: -42px 18px 0;
    }

    .company-section__pillars,
    .segments-section__grid,
    .contact-section__details {
        grid-template-columns: 1fr;
    }

    .segment-card {
        min-height: 430px;
    }

    .rural-section {
        min-height: 650px;
    }

    .rural-section__card {
        padding: 34px 26px;
    }

    .gallery-section__heading,
    .site-footer__legal {
        align-items: flex-start;
        flex-direction: column;
    }

    .gallery-section__grid {
        grid-template-columns: 1fr;
        grid-template-rows: 330px 240px 240px;
    }

    .gallery-section__item--wide {
        grid-row: auto;
    }

    .contact-section__grid {
        gap: 52px;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
    }

    .site-footer__links {
        flex-wrap: wrap;
    }

    .site-footer__legal {
        display: flex;
        gap: 10px;
    }

    .floating-whatsapp {
        right: 14px;
        bottom: 14px;
        min-height: 46px;
        padding: 0 18px;
    }
}
