:root {
    --green-950: #0c2b1d;
    --green-900: #123c28;
    --green-800: #185033;
    --green-700: #1f6b45;
    --green-500: #35a65a;
    --green-100: #e7f3e8;
    --gold-500: #d8a742;
    --earth-600: #8b5a2b;
    --ink-900: #18231d;
    --ink-700: #36443b;
    --ink-500: #66736a;
    --line: #dce6db;
    --paper: #ffffff;
    --soft: #f4f7f1;
    --soft-2: #eef4ec;
    --danger: #9d2f2f;
    --success: #1f6b45;
    --shadow: 0 18px 45px rgba(18, 60, 40, 0.12);
    --radius: 8px;
    --header-height: 78px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink-900);
    background: var(--paper);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0;
    overflow-x: hidden;
}

body.is-menu-open {
    overflow: hidden;
}

img,
svg {
    max-width: 100%;
}

img {
    display: block;
    height: auto;
}

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

button,
input,
select,
textarea {
    font: inherit;
    letter-spacing: 0;
}

button {
    cursor: pointer;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--green-950);
    line-height: 1.08;
}

h1 {
    font-size: 2.35rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.85rem;
    margin-bottom: 0.85rem;
}

h3 {
    font-size: 1.1rem;
    margin-bottom: 0.45rem;
}

p {
    color: var(--ink-700);
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    padding: 0.65rem 0.9rem;
    color: var(--paper);
    background: var(--green-900);
    border-radius: var(--radius);
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: var(--header-height);
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(220, 230, 219, 0.86);
    backdrop-filter: blur(14px);
}

.site-header.is-scrolled {
    box-shadow: 0 12px 30px rgba(18, 60, 40, 0.08);
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.brand img {
    width: 170px;
    height: auto;
}

.brand--footer img {
    width: 190px;
}

.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--green-900);
    background: var(--paper);
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 99px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.is-menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.is-menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.is-menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: grid;
    gap: 1rem;
    padding: 1rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.is-menu-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
}

.site-nav ul {
    display: grid;
    gap: 0.25rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.site-nav a:not(.btn) {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.55rem 0.7rem;
    color: var(--ink-700);
    border-radius: var(--radius);
}

.site-nav a:not(.btn):hover,
.site-nav a:not(.btn).is-active {
    color: var(--green-900);
    background: var(--green-100);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 46px;
    padding: 0.75rem 1rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
    color: var(--paper);
    background: var(--green-800);
    box-shadow: 0 10px 24px rgba(18, 60, 40, 0.18);
}

.btn-primary:hover {
    background: var(--green-700);
}

.btn-secondary {
    color: var(--green-950);
    background: var(--gold-500);
}

.btn-secondary:hover {
    background: #e1b85d;
}

.btn-outline {
    color: var(--green-900);
    border-color: var(--line);
    background: var(--paper);
}

.btn-outline:hover {
    border-color: var(--green-500);
    background: var(--green-100);
}

.btn-light {
    color: var(--green-950);
    background: var(--paper);
}

.btn-light:hover {
    background: var(--gold-500);
}

.btn-large {
    width: 100%;
    min-height: 52px;
    padding: 0.9rem 1.15rem;
}

.nav-client {
    width: 100%;
}

.icon {
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 auto;
}

.section {
    padding: 4rem 0;
}

.section-soft {
    background: var(--soft);
}

.section-header {
    max-width: 760px;
    margin: 0 auto 2rem;
    text-align: center;
}

.section-header--left {
    margin-right: 0;
    margin-left: 0;
    text-align: left;
}

.section-header p {
    margin-bottom: 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.65rem;
    color: var(--green-700);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 28px;
    height: 3px;
    content: "";
    background: var(--gold-500);
    border-radius: 999px;
}

.eyebrow--light {
    color: var(--green-100);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 3rem 0 4rem;
    background:
        linear-gradient(145deg, rgba(244, 247, 241, 0.96), rgba(231, 243, 232, 0.86)),
        linear-gradient(90deg, rgba(216, 167, 66, 0.16), rgba(31, 107, 69, 0.08));
}

.hero::after {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 8px;
    content: "";
    background: linear-gradient(90deg, var(--green-900), var(--gold-500), var(--earth-600));
}

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

.hero-copy {
    position: relative;
    z-index: 1;
}

.hero-copy p {
    max-width: 610px;
    margin-bottom: 1.4rem;
    font-size: 1.05rem;
}

.hero-actions,
.section-actions {
    display: grid;
    gap: 0.75rem;
}

.hero-visual {
    position: relative;
    min-height: 365px;
    overflow: hidden;
    border: 1px solid rgba(18, 60, 40, 0.14);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(231, 243, 232, 0.8) 42%, rgba(31, 107, 69, 0.9) 43%, rgba(12, 43, 29, 0.94)),
        var(--green-900);
    box-shadow: var(--shadow);
}

.hero-visual__logo {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 112px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(220, 230, 219, 0.88);
    border-radius: var(--radius);
}

.hero-visual__logo img {
    width: min(260px, 100%);
}

.field-lines {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 58%;
    overflow: hidden;
}

.field-lines span {
    position: absolute;
    bottom: -38px;
    width: 55%;
    height: 190px;
    border-top: 3px solid rgba(216, 167, 66, 0.72);
    border-radius: 50%;
    transform: skewX(-18deg);
}

.field-lines span:nth-child(1) {
    left: -20%;
}

.field-lines span:nth-child(2) {
    left: 3%;
}

.field-lines span:nth-child(3) {
    left: 26%;
}

.field-lines span:nth-child(4) {
    left: 48%;
}

.hero-metrics {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
}

.hero-metrics div {
    min-width: 0;
    padding: 0.75rem 0.5rem;
    color: var(--paper);
    background: rgba(12, 43, 29, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
}

.hero-metrics strong {
    display: block;
    color: var(--gold-500);
    font-size: 1.25rem;
    line-height: 1;
}

.hero-metrics span {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    line-height: 1.25;
}

.client-area-section {
    background: var(--paper);
}

.client-area-layout {
    display: grid;
    gap: 2rem;
}

.feature-grid,
.sector-grid,
.benefit-grid,
.value-grid,
.contact-grid {
    display: grid;
    gap: 1rem;
}

.feature-card,
.sector-card,
.benefit-card,
.contact-card {
    min-width: 0;
    padding: 1.2rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(18, 60, 40, 0.06);
}

.feature-card p,
.sector-card p,
.benefit-card p,
.contact-card p {
    margin-bottom: 0;
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 0.85rem;
    color: var(--green-900);
    background: var(--green-100);
    border: 1px solid rgba(53, 166, 90, 0.22);
    border-radius: var(--radius);
}

.card-icon--large {
    width: 52px;
    height: 52px;
}

.card-icon .icon,
.sector-detail__icon .icon {
    width: 22px;
    height: 22px;
}

.sector-card {
    position: relative;
    overflow: hidden;
}

.sector-card::after {
    position: absolute;
    top: 0;
    right: 0;
    width: 78px;
    height: 6px;
    content: "";
    background: linear-gradient(90deg, var(--green-500), var(--gold-500));
}

.sector-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.7rem;
}

.sector-card__tag,
.sector-detail__note {
    display: inline-flex;
    padding: 0.28rem 0.55rem;
    color: var(--earth-600);
    background: rgba(216, 167, 66, 0.14);
    border: 1px solid rgba(216, 167, 66, 0.26);
    border-radius: var(--radius);
    font-size: 0.78rem;
    font-weight: 700;
}

.sector-card__future {
    margin: 1rem 0;
    padding: 0.8rem;
    color: var(--ink-700);
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 0.92rem;
}

.benefit-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.benefit-card .card-icon {
    margin-bottom: 0;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1rem;
    color: var(--green-800);
    font-weight: 800;
}

.text-link:hover {
    color: var(--earth-600);
}

.cta-band {
    padding: 3rem 0;
    color: var(--paper);
    background:
        linear-gradient(135deg, rgba(12, 43, 29, 0.98), rgba(31, 107, 69, 0.96)),
        var(--green-900);
}

.cta-band__inner {
    display: grid;
    gap: 1.5rem;
    align-items: center;
}

.cta-band h2,
.cta-band p {
    color: var(--paper);
}

.cta-band p {
    margin-bottom: 0;
    opacity: 0.9;
}

.quick-contact {
    background: linear-gradient(180deg, var(--paper), var(--soft));
}

.contact-card {
    display: flex;
    flex-direction: column;
}

.contact-card .text-link {
    margin-top: auto;
    padding-top: 1rem;
}

.page-hero {
    padding: 3rem 0;
    color: var(--paper);
    background:
        linear-gradient(135deg, rgba(12, 43, 29, 0.98), rgba(24, 80, 51, 0.94)),
        var(--green-900);
}

.page-hero--compact {
    padding: 2.5rem 0;
}

.page-hero__inner {
    max-width: 780px;
}

.page-hero h1,
.page-hero p {
    color: var(--paper);
}

.page-hero p {
    margin-bottom: 0;
    opacity: 0.9;
}

.about-layout,
.contact-layout {
    display: grid;
    gap: 2rem;
}

.about-story p:last-child {
    margin-bottom: 0;
}

.about-panel {
    display: grid;
    gap: 0.8rem;
    align-content: start;
    padding: 1.2rem;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.about-panel div {
    padding: 1rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.about-panel strong {
    display: block;
    color: var(--green-900);
    font-size: 2rem;
    line-height: 1;
}

.about-panel span {
    display: block;
    margin-top: 0.35rem;
    color: var(--ink-500);
}

.sector-detail-grid {
    display: grid;
    gap: 1rem;
}

.sector-detail {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(18, 60, 40, 0.06);
}

.sector-detail__media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 132px;
    padding: 1rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 241, 0.92)),
        var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.sector-detail__media img {
    width: min(100%, 320px);
    max-height: 150px;
    object-fit: contain;
}

.sector-detail__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    color: var(--paper);
    background: var(--green-800);
    border-radius: var(--radius);
}

.sector-detail__note {
    margin-bottom: 1rem;
}

.split-panel {
    display: grid;
    gap: 1.25rem;
    align-items: center;
    padding: 1.4rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.split-panel p {
    margin-bottom: 0;
}

.contact-info {
    min-width: 0;
}

.contact-list {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.5rem;
}

.contact-list > div {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 0 0.8rem;
    align-items: center;
    padding: 1rem;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.contact-list .card-icon {
    grid-row: span 2;
    margin-bottom: 0;
}

.contact-list strong {
    color: var(--green-950);
}

.contact-list a,
.contact-list span {
    color: var(--ink-700);
}

.contact-form {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.contact-form h2 {
    margin-bottom: 0;
}

.contact-form > p {
    margin-bottom: 0;
}

.form-grid {
    display: grid;
    gap: 1rem;
}

label {
    display: grid;
    gap: 0.35rem;
    color: var(--green-950);
    font-weight: 800;
}

.required-marker {
    color: #f28c28;
    font-weight: 900;
    margin-left: 0.25rem;
}

input,
select,
textarea {
    width: 100%;
    min-height: 48px;
    padding: 0.78rem 0.85rem;
    color: var(--ink-900);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    outline: none;
}

textarea {
    resize: vertical;
    min-height: 140px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--green-500);
    box-shadow: 0 0 0 3px rgba(53, 166, 90, 0.16);
}

.form-hp {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.form-consent {
    color: var(--ink-500);
    font-size: 0.9rem;
}

.form-consent a {
    color: var(--green-800);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.form-status {
    display: none;
    padding: 0.85rem;
    border-radius: var(--radius);
    font-weight: 700;
}

.form-status.is-visible {
    display: block;
}

.form-status.is-success {
    color: var(--success);
    background: #e7f3e8;
    border: 1px solid rgba(31, 107, 69, 0.24);
}

.form-status.is-error {
    color: var(--danger);
    background: #f8eded;
    border: 1px solid rgba(157, 47, 47, 0.24);
}

.legal-content {
    background: var(--soft);
}

.legal-box {
    max-width: 900px;
    padding: 1.25rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.legal-box h2 {
    margin-top: 1.6rem;
    font-size: 1.2rem;
}

.legal-box h2:first-child {
    margin-top: 0;
}

.legal-box p:last-child {
    margin-bottom: 0;
}

.site-footer {
    color: var(--paper);
    background: var(--green-950);
}

.footer-grid {
    display: grid;
    gap: 2rem;
    padding: 3rem 0 2rem;
}

.footer-brand p,
.footer-small,
.site-footer li,
.site-footer a,
.footer-bottom p {
    color: rgba(255, 255, 255, 0.78);
}

.footer-brand p {
    margin-bottom: 0.8rem;
}

.footer-signature {
    width: min(260px, 100%);
    margin: 1rem 0;
}

.footer-zapagro {
    width: min(190px, 100%);
    margin-bottom: 0.85rem;
}

.footer-small {
    font-size: 0.9rem;
}

.site-footer h2 {
    color: var(--paper);
    font-size: 1rem;
    margin-bottom: 0.9rem;
}

.footer-links {
    display: grid;
    gap: 0.55rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-links a:hover {
    color: var(--gold-500);
}

.footer-contact li {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
}

.footer-contact .icon {
    margin-top: 0.2rem;
    color: var(--gold-500);
}

.footer-bottom {
    display: grid;
    gap: 0.9rem;
    padding: 1.1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-bottom p {
    margin-bottom: 0;
}

.footer-bottom div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.1rem;
}

.floating-zapagro {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: 0.62rem;
    max-width: calc(100% - 32px);
    min-height: 58px;
    padding: 0.48rem 0.6rem 0.48rem 0.74rem;
    color: var(--paper);
    text-decoration: none;
    background:
        radial-gradient(circle at 18% 15%, rgba(245, 178, 64, 0.22), transparent 32%),
        linear-gradient(135deg, rgba(9, 38, 25, 0.98), rgba(21, 82, 52, 0.98));
    border: 1px solid rgba(217, 164, 54, 0.62);
    border-radius: 999px;
    box-shadow:
        0 18px 40px rgba(12, 43, 29, 0.28),
        0 0 0 5px rgba(217, 164, 54, 0.08);
    isolation: isolate;
    overflow: hidden;
    transform: translateY(0);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.floating-zapagro::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    content: "";
    background: linear-gradient(110deg, transparent 0 42%, rgba(255, 255, 255, 0.2) 49%, transparent 57%);
    transform: translateX(-125%);
    transition: transform 520ms ease;
}

.floating-zapagro::after {
    display: grid;
    position: relative;
    z-index: 1;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    color: var(--green-950);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
    content: ">";
    background: linear-gradient(135deg, #f5b240, #ffe19a);
    border-radius: 50%;
    box-shadow: inset 0 -2px 0 rgba(123, 83, 8, 0.2), 0 8px 18px rgba(0, 0, 0, 0.2);
    place-items: center;
}

.floating-zapagro:hover,
.floating-zapagro:focus-visible {
    border-color: rgba(255, 225, 154, 0.9);
    box-shadow:
        0 22px 48px rgba(12, 43, 29, 0.34),
        0 0 0 5px rgba(217, 164, 54, 0.12);
    transform: translateY(-3px);
}

.floating-zapagro:hover::before,
.floating-zapagro:focus-visible::before {
    transform: translateX(125%);
}

.floating-zapagro img {
    position: relative;
    z-index: 1;
    width: 118px;
    max-height: 38px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.24));
    object-fit: contain;
}

.floating-zapagro span {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 0.84rem;
    font-weight: 900;
    white-space: nowrap;
}

.floating-zapagro:focus-visible {
    outline: 3px solid rgba(245, 178, 64, 0.38);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .floating-zapagro,
    .floating-zapagro::before {
        transition: none;
    }
}

@media (max-width: 420px) {
    .floating-zapagro {
        right: 12px;
        bottom: 12px;
        gap: 0.5rem;
        min-height: 54px;
        max-width: calc(100% - 24px);
        padding: 0.46rem 0.52rem 0.46rem 0.62rem;
    }

    .floating-zapagro img {
        width: 108px;
        max-height: 34px;
    }

    .floating-zapagro::after {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
    }
}

@media (min-width: 980px) {
    .floating-zapagro {
        right: 24px;
        bottom: 24px;
    }
}

.costelao-hero {
    padding: 3rem 0 3.5rem;
    color: var(--paper);
    background:
        linear-gradient(135deg, rgba(12, 43, 29, 0.98), rgba(31, 107, 69, 0.92)),
        var(--green-950);
}

.costelao-hero__grid {
    display: grid;
    gap: 1.6rem;
    align-items: center;
}

.costelao-hero__logo {
    width: min(360px, 100%);
    margin-bottom: 1rem;
}

.costelao-hero h1,
.costelao-hero p,
.costelao-hero__card p {
    color: var(--paper);
}

.costelao-hero h1 {
    font-size: 2.45rem;
}

.costelao-hero__copy p {
    max-width: 650px;
    font-size: 1.06rem;
    opacity: 0.94;
}

.costelao-date-pill,
.costelao-hero__card,
.costelao-date-card {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
}

.costelao-date-pill {
    display: grid;
    gap: 0.2rem;
    width: fit-content;
    max-width: 100%;
    margin: 1.2rem 0;
}

.costelao-date-pill span,
.costelao-hero__card span,
.costelao-date-card span {
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
}

.costelao-date-pill strong,
.costelao-hero__card strong,
.costelao-date-card strong {
    display: block;
    color: var(--gold-500);
    font-size: 1.35rem;
    line-height: 1.1;
}

.costelao-hero__card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.costelao-hero__card strong {
    margin: 0.5rem 0;
    font-size: 2rem;
}

.costelao-intro,
.costelao-signature__inner,
.costelao-zapagro__inner,
.costelao-form-layout {
    display: grid;
    gap: 1.5rem;
    align-items: center;
}

.costelao-date-card {
    color: var(--green-950);
    background: var(--paper);
    border-color: var(--line);
    box-shadow: var(--shadow);
}

.costelao-date-card strong {
    color: var(--green-800);
}

.costelao-date-card p {
    margin-bottom: 0;
}

.costelao-benefit-grid {
    display: grid;
    gap: 1rem;
}

.costelao-benefit-card {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    padding: 1rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(18, 60, 40, 0.06);
}

.costelao-benefit-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--green-900);
    background: var(--green-100);
    border-radius: var(--radius);
    flex: 0 0 auto;
}

.costelao-benefit-card p {
    margin-bottom: 0;
    font-weight: 800;
}

.costelao-signature {
    background: linear-gradient(180deg, var(--paper), var(--soft));
}

.costelao-signature img {
    width: min(420px, 100%);
    justify-self: center;
}

.costelao-zapagro {
    color: var(--paper);
    background: var(--green-950);
}

.costelao-zapagro h2,
.costelao-zapagro p {
    color: var(--paper);
}

.costelao-zapagro p {
    margin-bottom: 0;
}

.costelao-zapagro img {
    width: min(270px, 100%);
}

.gallery-empty {
    display: grid;
    justify-items: center;
    gap: 0.65rem;
    padding: 2rem 1rem;
    text-align: center;
    background: var(--paper);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
}

.gallery-empty span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    color: var(--green-900);
    background: var(--green-100);
    border-radius: var(--radius);
}

.gallery-empty p {
    margin-bottom: 0;
}

.costelao-gallery-grid {
    display: grid;
    gap: 1rem;
}

.costelao-gallery-grid figure {
    margin: 0;
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.costelao-gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.costelao-gallery-grid figcaption {
    padding: 0.8rem;
    font-weight: 800;
}

.faq-list {
    display: grid;
    gap: 0.8rem;
}

.faq-list details {
    padding: 1rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.faq-list summary {
    color: var(--green-950);
    font-weight: 900;
    cursor: pointer;
}

.faq-list p {
    margin: 0.8rem 0 0;
}

@media (min-width: 560px) {
    .btn-large {
        width: auto;
    }

    .hero-actions,
    .section-actions {
        display: flex;
        flex-wrap: wrap;
    }

    .feature-grid,
    .benefit-grid,
    .contact-grid,
    .form-grid,
    .costelao-benefit-grid,
    .costelao-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 760px) {
    h1 {
        font-size: 3.15rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    .section {
        padding: 5rem 0;
    }

    .hero {
        padding: 4.5rem 0 5rem;
    }

    .hero-grid,
    .client-area-layout,
    .about-layout,
    .contact-layout {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr);
    }

    .client-area-layout {
        align-items: start;
    }

    .sector-grid,
    .value-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sector-detail {
        grid-template-columns: minmax(230px, 0.34fr) minmax(0, 1fr);
        padding: 1.6rem;
        align-items: center;
    }

    .split-panel,
    .cta-band__inner,
    .costelao-zapagro__inner {
        grid-template-columns: 1fr auto;
    }

    .costelao-hero__grid,
    .costelao-intro,
    .costelao-signature__inner,
    .costelao-form-layout {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
    }
}

@media (min-width: 980px) {
    .brand img {
        width: 202px;
    }

    .menu-toggle {
        display: none;
    }

    .site-nav {
        position: static;
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 0;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        visibility: visible;
    }

    .site-nav ul {
        display: flex;
        align-items: center;
        gap: 0.2rem;
    }

    .site-nav a:not(.btn) {
        padding: 0.55rem 0.75rem;
    }

    .nav-client {
        width: auto;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr) 440px;
    }

    .hero-visual {
        min-height: 440px;
    }

    .hero-copy p {
        font-size: 1.15rem;
    }

    .feature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sector-grid,
    .contact-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .benefit-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .contact-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .costelao-benefit-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .costelao-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1.5fr 0.8fr 0.8fr 1.1fr;
    }

    .footer-bottom {
        grid-template-columns: 1fr auto;
        align-items: center;
    }
}

@media (min-width: 1160px) {
    h1 {
        font-size: 3.75rem;
    }
}

/* Premium TerraMilk visual layer */
:root {
    --green-950: #061f16;
    --green-900: #083826;
    --green-800: #0b5a38;
    --green-700: #10864d;
    --green-500: #27c768;
    --green-100: #e3f8e9;
    --gold-500: #f4b43e;
    --gold-300: #ffe18e;
    --copper-500: #b9652a;
    --ink-900: #102219;
    --ink-700: #34483d;
    --ink-500: #6a7a70;
    --line: #d5e7d4;
    --paper: #fffefa;
    --soft: #f4faf0;
    --soft-2: #eaf7e5;
    --shadow: 0 20px 52px rgba(6, 31, 22, 0.12);
    --shadow-strong: 0 28px 70px rgba(6, 31, 22, 0.2);
    --radius: 8px;
}

::selection {
    color: var(--green-950);
    background: var(--gold-300);
}

body {
    color: var(--ink-900);
    background:
        linear-gradient(180deg, rgba(255, 254, 250, 0.98) 0%, rgba(244, 250, 240, 0.92) 46%, rgba(255, 254, 250, 1) 100%),
        repeating-linear-gradient(115deg, rgba(16, 134, 77, 0.045) 0 1px, transparent 1px 18px);
    font-family: "Manrope", "Segoe UI", sans-serif;
}

h1,
h2,
h3 {
    color: var(--green-950);
    font-family: "Fraunces", Georgia, serif;
    font-weight: 850;
    letter-spacing: 0;
    text-wrap: balance;
}

h1 {
    font-size: 2.45rem;
}

h2 {
    font-size: 2rem;
}

p {
    color: var(--ink-700);
}

.site-header {
    background:
        linear-gradient(180deg, rgba(255, 254, 250, 0.94), rgba(255, 254, 250, 0.84));
    border-bottom: 1px solid rgba(8, 56, 38, 0.1);
    box-shadow: 0 1px 0 rgba(244, 180, 62, 0.24);
}

.site-header.is-scrolled {
    box-shadow: 0 16px 42px rgba(6, 31, 22, 0.12);
}

.brand img {
    filter: drop-shadow(0 10px 18px rgba(6, 31, 22, 0.16));
}

.menu-toggle,
.site-nav {
    border-color: rgba(8, 56, 38, 0.14);
    box-shadow: 0 14px 34px rgba(6, 31, 22, 0.1);
}

.menu-toggle {
    background: linear-gradient(180deg, #ffffff, #f4faf0);
}

.site-nav {
    background: rgba(255, 254, 250, 0.96);
}

.site-nav a:not(.btn) {
    color: var(--ink-700);
    font-weight: 700;
}

.site-nav a:not(.btn):hover,
.site-nav a:not(.btn).is-active {
    color: var(--green-950);
    background: linear-gradient(180deg, rgba(227, 248, 233, 0.96), rgba(217, 242, 223, 0.96));
    box-shadow: inset 0 0 0 1px rgba(39, 199, 104, 0.14);
}

.btn {
    min-height: 48px;
    border-radius: var(--radius);
    font-weight: 900;
    box-shadow: none;
}

.btn-primary {
    color: #fffefa;
    background:
        linear-gradient(135deg, rgba(255, 225, 142, 0.18), transparent 42%),
        linear-gradient(135deg, var(--green-900), var(--green-700));
    border-color: rgba(244, 180, 62, 0.34);
    box-shadow: 0 16px 34px rgba(8, 56, 38, 0.22);
}

.btn-primary:hover {
    background:
        linear-gradient(135deg, rgba(255, 225, 142, 0.22), transparent 42%),
        linear-gradient(135deg, var(--green-800), #11a75a);
    box-shadow: 0 20px 42px rgba(8, 56, 38, 0.28);
}

.btn-secondary {
    color: var(--green-950);
    background: linear-gradient(135deg, var(--gold-500), var(--gold-300));
    border-color: rgba(185, 101, 42, 0.18);
    box-shadow: 0 14px 30px rgba(185, 101, 42, 0.18);
}

.btn-secondary:hover,
.btn-light:hover {
    background: linear-gradient(135deg, #ffc94f, #fff0ad);
    box-shadow: 0 18px 38px rgba(185, 101, 42, 0.24);
}

.btn-outline,
.btn-light {
    color: var(--green-950);
    background: rgba(255, 254, 250, 0.9);
    border-color: rgba(8, 56, 38, 0.14);
    box-shadow: 0 10px 26px rgba(6, 31, 22, 0.08);
}

.btn-outline:hover {
    border-color: rgba(39, 199, 104, 0.45);
    background: var(--green-100);
}

.hero,
.page-hero {
    color: var(--paper);
    background:
        linear-gradient(118deg, rgba(6, 31, 22, 0.98), rgba(8, 56, 38, 0.96) 42%, rgba(16, 134, 77, 0.92)),
        repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 28px),
        var(--green-950);
}

.hero {
    padding: 3.75rem 0 4.5rem;
}

.hero::before,
.page-hero::before,
.costelao-hero::before,
.cta-band::before,
.site-footer::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    background:
        linear-gradient(112deg, transparent 0 56%, rgba(244, 180, 62, 0.12) 56% 57%, transparent 57%),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 42px);
}

.hero .container,
.page-hero .container,
.costelao-hero .container,
.cta-band .container,
.site-footer .container {
    position: relative;
    z-index: 1;
}

.hero::after {
    height: 7px;
    background: linear-gradient(90deg, var(--green-500), var(--gold-500), var(--copper-500), var(--green-700));
}

.hero h1,
.hero p,
.page-hero h1,
.page-hero p,
.cta-band h2,
.cta-band p,
.costelao-hero h1,
.costelao-hero p {
    color: #fffefa;
}

.hero-copy p,
.page-hero p,
.costelao-hero__copy p {
    color: rgba(255, 254, 250, 0.86);
}

.hero .eyebrow,
.page-hero .eyebrow,
.costelao-hero .eyebrow {
    color: var(--gold-300);
}

.eyebrow {
    color: var(--green-700);
    font-size: 0.78rem;
    font-weight: 900;
}

.eyebrow::before {
    height: 4px;
    background: linear-gradient(90deg, var(--gold-500), var(--green-500));
}

.hero-visual {
    border-color: rgba(255, 225, 142, 0.32);
    background:
        linear-gradient(180deg, rgba(255, 254, 250, 0.95), rgba(227, 248, 233, 0.9) 40%, rgba(16, 134, 77, 0.92) 41%, rgba(6, 31, 22, 0.98)),
        var(--green-900);
    box-shadow: var(--shadow-strong);
}

.hero-visual__logo {
    background:
        linear-gradient(180deg, rgba(255, 254, 250, 0.94), rgba(255, 255, 255, 0.78));
    border-color: rgba(8, 56, 38, 0.14);
    box-shadow: 0 18px 42px rgba(6, 31, 22, 0.12);
}

.field-lines span {
    border-top-color: rgba(255, 225, 142, 0.82);
}

.hero-metrics div {
    background: rgba(6, 31, 22, 0.78);
    border-color: rgba(255, 225, 142, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hero-metrics strong {
    color: var(--gold-300);
    font-family: "Fraunces", Georgia, serif;
    font-weight: 850;
}

.section {
    position: relative;
}

.section-soft,
.quick-contact,
.legal-content,
.costelao-signature {
    background:
        linear-gradient(180deg, rgba(244, 250, 240, 0.98), rgba(255, 254, 250, 0.96)),
        repeating-linear-gradient(115deg, rgba(8, 56, 38, 0.05) 0 1px, transparent 1px 22px);
}

.section-header {
    margin-bottom: 2.35rem;
}

.section-header p {
    font-size: 1.02rem;
}

.feature-card,
.sector-card,
.benefit-card,
.contact-card,
.sector-detail,
.split-panel,
.about-panel,
.about-panel div,
.legal-box,
.costelao-date-card,
.costelao-benefit-card,
.gallery-empty,
.costelao-gallery-grid figure,
.faq-list details {
    background:
        linear-gradient(180deg, rgba(255, 254, 250, 0.98), rgba(249, 253, 246, 0.94));
    border-color: rgba(8, 56, 38, 0.12);
    box-shadow: 0 16px 42px rgba(6, 31, 22, 0.08);
}

.feature-card,
.sector-card,
.benefit-card,
.contact-card,
.sector-detail,
.costelao-benefit-card,
.faq-list details {
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature-card:hover,
.sector-card:hover,
.benefit-card:hover,
.contact-card:hover,
.sector-detail:hover,
.costelao-benefit-card:hover,
.faq-list details:hover {
    border-color: rgba(39, 199, 104, 0.3);
    box-shadow: 0 24px 58px rgba(6, 31, 22, 0.13);
    transform: translateY(-3px);
}

.card-icon,
.sector-detail__icon,
.costelao-benefit-card span,
.gallery-empty span {
    color: var(--green-950);
    background:
        linear-gradient(135deg, rgba(255, 225, 142, 0.82), rgba(39, 199, 104, 0.18)),
        var(--green-100);
    border-color: rgba(39, 199, 104, 0.2);
    box-shadow: inset 0 -2px 0 rgba(6, 31, 22, 0.06);
}

.sector-card::after {
    height: 7px;
    background: linear-gradient(90deg, var(--green-500), var(--gold-500), var(--copper-500));
}

.sector-card__tag,
.sector-detail__note {
    color: #76501b;
    background: linear-gradient(180deg, rgba(255, 225, 142, 0.28), rgba(255, 254, 250, 0.88));
    border-color: rgba(244, 180, 62, 0.36);
}

.sector-card__future {
    background:
        linear-gradient(180deg, rgba(227, 248, 233, 0.78), rgba(255, 254, 250, 0.92));
    border-color: rgba(39, 199, 104, 0.16);
}

.sector-detail__media {
    background:
        linear-gradient(180deg, rgba(255, 254, 250, 0.98), rgba(227, 248, 233, 0.7)),
        repeating-linear-gradient(120deg, rgba(16, 134, 77, 0.08) 0 1px, transparent 1px 18px);
    border-color: rgba(8, 56, 38, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 254, 250, 0.7);
}

.text-link {
    color: var(--green-800);
    text-decoration: underline;
    text-decoration-color: rgba(244, 180, 62, 0.42);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.text-link:hover {
    color: var(--copper-500);
}

.cta-band,
.costelao-zapagro {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(122deg, rgba(6, 31, 22, 0.98), rgba(8, 56, 38, 0.95) 54%, rgba(16, 134, 77, 0.94)),
        var(--green-950);
}

.cta-band__inner {
    padding: 1.5rem 0;
}

.contact-list > div,
.contact-form {
    background:
        linear-gradient(180deg, rgba(255, 254, 250, 0.98), rgba(244, 250, 240, 0.96));
    border-color: rgba(8, 56, 38, 0.12);
    box-shadow: 0 16px 42px rgba(6, 31, 22, 0.08);
}

.contact-form {
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    content: "";
    background: linear-gradient(90deg, var(--green-500), var(--gold-500), var(--copper-500));
}

input,
select,
textarea {
    color: var(--ink-900);
    background: #fffefa;
    border-color: rgba(8, 56, 38, 0.16);
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(39, 199, 104, 0.72);
    box-shadow: 0 0 0 4px rgba(39, 199, 104, 0.14);
}

.form-status.is-success {
    color: var(--green-900);
    background: var(--green-100);
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 3.4rem 0;
}

.about-panel strong {
    color: var(--green-800);
    font-family: "Fraunces", Georgia, serif;
    font-weight: 850;
}

.site-footer {
    position: relative;
    overflow: hidden;
    color: var(--paper);
    background:
        linear-gradient(125deg, rgba(6, 31, 22, 1), rgba(8, 56, 38, 0.98)),
        var(--green-950);
}

.site-footer::before {
    opacity: 0.9;
}

.site-footer h2 {
    color: #fffefa;
    font-family: "Manrope", "Segoe UI", sans-serif;
    font-weight: 900;
}

.footer-links a:hover,
.footer-contact .icon {
    color: var(--gold-300);
}

.footer-bottom {
    border-top-color: rgba(255, 225, 142, 0.16);
}

.floating-zapagro {
    background:
        linear-gradient(135deg, rgba(255, 225, 142, 0.18), transparent 44%),
        linear-gradient(135deg, rgba(6, 31, 22, 0.98), rgba(16, 134, 77, 0.98));
    border-color: rgba(255, 225, 142, 0.72);
    box-shadow:
        0 20px 46px rgba(6, 31, 22, 0.34),
        0 0 0 5px rgba(244, 180, 62, 0.1);
}

.costelao-hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(122deg, rgba(6, 31, 22, 0.98), rgba(75, 36, 12, 0.82) 46%, rgba(16, 134, 77, 0.95)),
        var(--green-950);
}

.costelao-date-pill,
.costelao-hero__card {
    background: rgba(255, 254, 250, 0.12);
    border-color: rgba(255, 225, 142, 0.26);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 22px 52px rgba(6, 31, 22, 0.18);
}

.costelao-date-pill strong,
.costelao-hero__card strong,
.costelao-date-card strong {
    color: var(--gold-300);
    font-family: "Fraunces", Georgia, serif;
    font-weight: 850;
}

.costelao-date-card strong {
    color: var(--green-800);
}

.costelao-zapagro h2,
.costelao-zapagro p {
    color: #fffefa;
}

.faq-list summary {
    color: var(--green-950);
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.05rem;
}

@media (prefers-reduced-motion: reduce) {
    .feature-card,
    .sector-card,
    .benefit-card,
    .contact-card,
    .sector-detail,
    .costelao-benefit-card,
    .faq-list details,
    .btn {
        transition: none;
    }
}

@media (min-width: 760px) {
    h1 {
        font-size: 3.25rem;
    }

    h2 {
        font-size: 2.45rem;
    }

    .hero {
        padding: 5rem 0 5.5rem;
    }

    .page-hero {
        padding: 4.35rem 0;
    }
}

@media (min-width: 1160px) {
    h1 {
        font-size: 4.05rem;
    }
}

/* CMS institucional */
.cms-page .site-header {
    backdrop-filter: saturate(140%) blur(10px);
}

.cms-hero {
    min-height: min(680px, calc(100vh - 74px));
    display: flex;
    align-items: center;
    padding: clamp(48px, 8vw, 92px) 0 clamp(32px, 6vw, 72px);
    background:
        linear-gradient(135deg, rgba(10, 61, 31, .96), rgba(18, 81, 43, .86)),
        url("../img/brand/conectar-produtor.png") center/cover no-repeat;
    color: #fff;
}

.cms-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(260px, .88fr);
    gap: clamp(26px, 5vw, 64px);
    align-items: center;
}

.cms-hero-copy h1 {
    max-width: 840px;
    margin: 14px 0;
    font-size: clamp(2.25rem, 6vw, 5.4rem);
    line-height: .96;
    letter-spacing: 0;
}

.cms-hero-copy p {
    max-width: 680px;
    color: rgba(255, 255, 255, .86);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.cms-hero-media {
    min-height: 280px;
    display: grid;
    place-items: center;
}

.cms-hero-media img {
    width: min(420px, 100%);
    max-height: 380px;
    object-fit: contain;
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .28));
}

.cms-section {
    padding: clamp(48px, 7vw, 86px) 0;
}

.cms-section-soft {
    background: #f5f8f0;
}

.cms-text {
    max-width: 900px;
}

.cms-text h2,
.cms-split h2 {
    margin: 8px 0 14px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.02;
    letter-spacing: 0;
}

.cms-lead {
    color: var(--ink-500);
    font-size: 1.08rem;
}

.cms-prose {
    color: #33483b;
    font-size: 1.02rem;
    line-height: 1.78;
}

.cms-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .82fr);
    gap: clamp(28px, 5vw, 60px);
    align-items: center;
}

.cms-split-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 24px 54px -34px rgba(10, 61, 31, .45);
}

.cms-card-grid,
.cms-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.cms-metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.cms-metric-grid div {
    padding: 22px;
    border: 1px solid rgba(18, 60, 40, .1);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 32px -26px rgba(10, 61, 31, .24);
}

.cms-metric-grid strong {
    display: block;
    color: var(--green-800);
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1;
}

.cms-metric-grid span {
    display: block;
    margin-top: 8px;
    color: var(--ink-500);
    font-weight: 800;
}

.cms-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.cms-gallery-grid figure {
    margin: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 36px -30px rgba(10, 61, 31, .35);
}

.cms-gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.cms-gallery-grid figcaption {
    padding: 12px 14px;
    font-weight: 800;
}

.cms-news-card {
    overflow: hidden;
    border: 1px solid rgba(18, 60, 40, .1);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 42px -34px rgba(10, 61, 31, .35);
}

.cms-news-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.cms-news-card > div {
    padding: 18px;
}

.cms-news-card span {
    color: var(--green-800);
    font-size: .82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.cms-news-card h3 {
    margin: 8px 0;
    font-size: 1.25rem;
    letter-spacing: 0;
}

.cms-news-card p {
    color: var(--ink-500);
}

.cms-empty {
    padding: 28px;
    border: 1px solid rgba(18, 60, 40, .12);
    border-radius: 16px;
    background: #fff;
    text-align: center;
}

.cms-block {
    scroll-margin-top: calc(var(--header-height) + 24px);
}

.cms-pad-compact {
    padding-top: 28px;
    padding-bottom: 28px;
}

.cms-pad-spacious {
    padding-top: 96px;
    padding-bottom: 104px;
}

.cms-theme-light {
    background: var(--paper);
}

.cms-theme-soft {
    background: var(--soft);
}

.cms-theme-brand,
.cms-theme-dark {
    color: #fff;
}

.cms-theme-brand {
    background: var(--green-900);
}

.cms-theme-dark {
    background: #17231d;
}

.cms-theme-accent {
    background: #fff7df;
}

.cms-theme-brand h1,
.cms-theme-brand h2,
.cms-theme-brand h3,
.cms-theme-dark h1,
.cms-theme-dark h2,
.cms-theme-dark h3,
.cms-theme-brand p,
.cms-theme-dark p,
.cms-theme-brand .cms-prose,
.cms-theme-dark .cms-prose,
.cms-theme-brand .cms-lead,
.cms-theme-dark .cms-lead {
    color: rgba(255, 255, 255, .88);
}

.cms-theme-brand .eyebrow,
.cms-theme-dark .eyebrow {
    color: #bce7bf;
}

.cms-theme-brand .feature-card h3,
.cms-theme-brand .sector-card h3,
.cms-theme-brand .benefit-card h3,
.cms-theme-dark .feature-card h3,
.cms-theme-dark .sector-card h3,
.cms-theme-dark .benefit-card h3 {
    color: var(--green-950);
}

.cms-theme-brand .feature-card p,
.cms-theme-brand .sector-card p,
.cms-theme-brand .benefit-card p,
.cms-theme-dark .feature-card p,
.cms-theme-dark .sector-card p,
.cms-theme-dark .benefit-card p {
    color: var(--ink-700);
}

.cms-align-center {
    text-align: center;
}

.cms-align-center .section-actions,
.cms-align-center .hero-actions {
    justify-content: center;
}

.cms-width-narrow {
    width: min(840px, calc(100% - 32px));
}

.cms-width-wide {
    width: min(1320px, calc(100% - 32px));
}

.cms-width-full {
    width: 100%;
}

.cms-layout-full_bleed {
    padding-left: 0;
    padding-right: 0;
}

.cms-layout-full_bleed > .container,
.cms-layout-full_bleed > .cms-width-full {
    width: 100%;
}

.cms-image-left .cms-split-media,
.cms-image-left .cms-hero-media {
    order: -1;
}

.cms-image-top .cms-split,
.cms-image-top .cms-hero-grid {
    grid-template-columns: 1fr;
}

.cms-hero.cms-image-background {
    position: relative;
    isolation: isolate;
    background: var(--green-900);
}

.cms-hero.cms-image-background::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: var(--cms-hero-bg);
    background-position: center;
    background-size: cover;
}

.cms-hero.cms-image-background::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(8, 45, 28, .74);
}

.cms-hero.cms-image-background .cms-hero-media {
    display: none;
}

.cms-columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cms-columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cms-columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cms-quote-wrap {
    max-width: 980px;
}

.cms-quote {
    margin: 0;
    padding: 34px;
    border-left: 5px solid var(--gold-500);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
}

.cms-quote p {
    color: var(--green-950);
    font-size: 1.35rem;
    line-height: 1.45;
}

.cms-quote footer {
    display: grid;
    gap: 3px;
    margin-top: 18px;
}

.cms-quote footer span {
    color: var(--ink-500);
}

.cms-divider-section {
    padding: 10px 0;
}

.cms-divider {
    border: 0;
    border-top: 1px solid var(--line);
}

.cms-spacer {
    min-height: 64px;
}

.cms-b2c-banner-grid,
.cms-b2c-promo-grid,
.cms-b2c-product-grid {
    display: grid;
    gap: 18px;
}

.cms-b2c-banner-card,
.cms-b2c-promo-card,
.cms-b2c-product-card {
    overflow: hidden;
    border: 1px solid rgba(18, 60, 40, .12);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 38px -32px rgba(10, 61, 31, .34);
}

.cms-b2c-banner-card img,
.cms-b2c-promo-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.cms-b2c-product-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    padding: 16px;
    background: #f5f8f1;
}

.cms-b2c-banner-card > div,
.cms-b2c-promo-card > div,
.cms-b2c-product-card > div {
    display: grid;
    gap: 8px;
    padding: 18px;
}

.cms-b2c-promo-card span,
.cms-b2c-product-card span {
    color: var(--green-800);
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.cms-b2c-banner-card h3,
.cms-b2c-promo-card h3,
.cms-b2c-product-card h3 {
    margin: 0;
    color: var(--green-950);
    letter-spacing: 0;
}

.cms-b2c-banner-card p,
.cms-b2c-promo-card p,
.cms-b2c-product-card p {
    color: var(--ink-700);
}

.fixed-promo-grid {
    grid-template-columns: 1fr;
}

.fixed-empty-wide {
    grid-column: 1 / -1;
}

.cms-b2c-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.cms-b2c-badges strong {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--green-950);
    background: var(--green-100);
    font-size: .82rem;
}

.cms-b2c-product-card del {
    color: var(--ink-500);
}

.cms-b2c-product-card p strong {
    color: var(--green-900);
    font-size: 1.2rem;
}

.cms-cta-section {
    padding-top: 42px;
    padding-bottom: 42px;
}

.cms-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 28px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 16px;
    background: rgba(255,255,255,.08);
}

.cms-theme-light .cms-cta,
.cms-theme-soft .cms-cta,
.cms-theme-accent .cms-cta {
    border-color: rgba(18, 60, 40, .12);
    background: #fff;
    box-shadow: var(--shadow);
}

@media (max-width: 860px) {
    .cms-hero {
        min-height: auto;
    }

    .cms-hero-grid,
    .cms-split {
        grid-template-columns: 1fr;
    }

    .cms-hero-media {
        min-height: 180px;
    }

    .cms-hero-copy h1 {
        font-size: clamp(2.2rem, 12vw, 4rem);
    }

    .cms-columns-2,
    .cms-columns-3,
    .cms-columns-4,
    .cms-b2c-banner-grid,
    .cms-b2c-promo-grid,
    .cms-b2c-product-grid {
        grid-template-columns: 1fr;
    }

    .cms-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (min-width: 760px) {
    .fixed-promo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .fixed-promo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
