/* ==========================================================================
   GrowMap — Camada de design "Agro moderno / clean"
   Carregada DEPOIS de landing.css. Refina a vitrine pública sem quebrar
   as classes existentes (navbar, footer, botões, cards, seções).
   ========================================================================== */

:root {
    /* Paleta */
    --gm-forest:        #123a26;   /* verde floresta profundo */
    --gm-forest-deep:   #0c2a1b;
    --gm-green:         #1f7a4d;   /* verde marca */
    --gm-green-bright:  #34c17a;   /* acento fresco */
    --gm-lime:          #c7e59a;   /* toque de lima / brotos */
    --gm-sand:          #f6f5ef;   /* fundo creme/areia */
    --gm-sand-2:        #eef0e7;
    --gm-ink:           #14231b;   /* texto principal */
    --gm-muted:         #5d6b62;   /* texto secundário */
    --gm-line:          #e4e7dd;   /* bordas suaves */
    --gm-white:         #ffffff;

    --gm-grad:          linear-gradient(135deg, #2b8b57 0%, #14432e 100%);
    --gm-grad-bright:   linear-gradient(135deg, #34c17a 0%, #1f7a4d 100%);

    --gm-radius:        18px;
    --gm-radius-lg:     26px;
    --gm-shadow-sm:     0 2px 10px rgba(18, 45, 30, .06);
    --gm-shadow:        0 18px 44px rgba(18, 45, 30, .10);
    --gm-shadow-lg:     0 34px 80px rgba(12, 42, 27, .16);

    /* Overrides dos tokens antigos p/ manter consistência global */
    --primary-green:        var(--gm-green);
    --primary-green-dark:   var(--gm-forest);
    --brand-gradient:       var(--gm-grad);
    --text-main:            var(--gm-ink);
    --text-muted:           var(--gm-muted);
    --bg-light:             var(--gm-sand);
}

/* Desliga o efeito de folhas caindo (visual datado p/ produto B2B) */
#leaves-container { display: none !important; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    background: var(--gm-sand);
    color: var(--gm-ink);
}

/* --------------------------------------------------------------------------
   Tipografia
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, .navbar-brand { font-family: 'Outfit', 'Inter', sans-serif; }

.gm-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .95rem;
    border-radius: 999px;
    font: 700 .74rem/1 'Inter', sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
    background: #e7f1e8;
    color: var(--gm-green);
    border: 1px solid #d3e6d5;
}
.gm-eyebrow.on-dark {
    background: rgba(199, 229, 154, .13);
    border-color: rgba(199, 229, 154, .30);
    color: var(--gm-lime);
}
.gm-eyebrow .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--gm-green-bright);
    box-shadow: 0 0 0 4px rgba(52, 193, 122, .18);
}

/* --------------------------------------------------------------------------
   Navbar — refino
   -------------------------------------------------------------------------- */
.navbar { padding: 1.1rem 0; }
.navbar.scrolled {
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--gm-line);
    box-shadow: 0 8px 30px rgba(18, 45, 30, .06);
}
.navbar-brand img { height: 46px; }
.navbar-brand .brand-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -.02em;
    line-height: 1;
    color: #fff;
    transition: color .4s cubic-bezier(.165,.84,.44,1);
}
.navbar-brand .brand-name::after { content: ''; } /* mantém baseline estável */
.navbar.scrolled .brand-name { color: var(--gm-forest); }
.nav-link { font-weight: 500; }

@media (max-width: 400px) {
    .navbar-brand .brand-name { font-size: 1.25rem; }
}

.btn-primary-green {
    background: var(--gm-grad);
    border: none;
    border-radius: 12px;
    padding: .8rem 1.5rem;
    font-weight: 600;
    letter-spacing: -.01em;
    box-shadow: 0 12px 24px rgba(20, 67, 46, .22);
    transition: transform .25s cubic-bezier(.16,.84,.44,1), box-shadow .25s;
}
.btn-primary-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(20, 67, 46, .30);
}

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.hero-home {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 170px 0 90px;
    background-image:
        linear-gradient(105deg, rgba(7,26,16,.90) 0%, rgba(9,34,20,.66) 46%, rgba(9,30,18,.30) 100%),
        url('/static/images/hero_agro_premium.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}
.hero-home::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 40%;
    background: linear-gradient(transparent, rgba(6, 24, 14, .55));
    pointer-events: none;
}
.hero-home .container { position: relative; z-index: 2; }

.hero-home .heading-xl {
    max-width: 900px;
    margin: 1.4rem auto 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(2.75rem, 6vw, 5.4rem);
    line-height: 1.02;
    letter-spacing: -.04em;
    color: #fff;
    text-shadow: 0 2px 30px rgba(0,0,0,.25);
}
.hero-home .heading-xl .accent {
    background: linear-gradient(90deg, #c7e59a, #7fdca7);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-home .subheading {
    max-width: 640px;
    margin: 0 auto 0;
    font-size: clamp(1.05rem, 1.5vw, 1.28rem);
    line-height: 1.65;
    color: rgba(255,255,255,.90);
}

.hero-cta-row {
    display: flex; flex-wrap: wrap; gap: 1rem;
    justify-content: center;
    margin-top: 2.6rem;
}
.btn-hero-secondary {
    display: inline-flex; align-items: center; gap: .5rem;
    color: #fff;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 12px;
    padding: .8rem 1.5rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    transition: background .25s, border-color .25s, transform .25s;
}
.btn-hero-secondary:hover {
    background: #fff; color: var(--gm-forest);
    border-color: #fff; transform: translateY(-2px);
}

/* Barra de estatísticas dentro do hero */
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.6rem;
    margin-top: 3.4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,.18);
}
.hero-stats .stat { text-align: center; min-width: 120px; }
.hero-stats .stat .num {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(1.7rem, 2.6vw, 2.3rem);
    line-height: 1;
    background: linear-gradient(90deg, #ffffff, #c7e59a);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-stats .stat .lbl {
    display: block;
    margin-top: .5rem;
    font-size: .8rem;
    letter-spacing: .02em;
    color: rgba(255,255,255,.72);
}

/* --------------------------------------------------------------------------
   Seções genéricas
   -------------------------------------------------------------------------- */
.section-padding { padding: 118px 0; }
.section-sand  { background: var(--gm-sand); }
.section-white { background: var(--gm-white); }
.section-eyebrow { /* reaproveita o eyebrow claro */
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .5rem .95rem; border-radius: 999px;
    background: #e7f1e8; color: var(--gm-green);
    border: 1px solid #d3e6d5;
    font: 700 .74rem/1 'Inter', sans-serif;
    letter-spacing: .12em; text-transform: uppercase;
    margin-bottom: 1.25rem;
}
.heading-section, .section-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--gm-ink);
    font-size: clamp(2rem, 3.4vw, 3.1rem);
    line-height: 1.08;
}
.subheading { color: var(--gm-muted); font-size: 1.14rem; line-height: 1.7; }

/* --------------------------------------------------------------------------
   Moldura do mapa demo
   -------------------------------------------------------------------------- */
.map-frame {
    height: 520px;
    border-radius: var(--gm-radius-lg);
    overflow: hidden;
    border: 1px solid var(--gm-line);
    background: #fff;
    padding: 10px;
    position: relative;
    box-shadow: var(--gm-shadow-lg) !important;
}
.map-frame #landing-map { border-radius: calc(var(--gm-radius-lg) - 10px); }
.map-frame:hover { transform: none; }
.map-check {
    display: flex; align-items: flex-start; gap: .8rem;
    margin-bottom: 1rem;
}
.map-check .ico {
    flex: 0 0 auto;
    width: 30px; height: 30px; border-radius: 9px;
    display: grid; place-items: center;
    background: #e7f1e8; color: var(--gm-green);
    font-size: .85rem;
}
.map-check span { color: var(--gm-ink); font-weight: 500; }

/* --------------------------------------------------------------------------
   Cards de benefício
   -------------------------------------------------------------------------- */
.card-feature {
    background: #fff;
    border: 1px solid var(--gm-line);
    border-radius: var(--gm-radius);
    padding: 2.4rem 2rem;
    box-shadow: var(--gm-shadow-sm);
    transition: transform .35s cubic-bezier(.16,.84,.44,1), box-shadow .35s, border-color .35s;
}
.card-feature:hover {
    transform: translateY(-8px);
    box-shadow: var(--gm-shadow);
    border-color: #cfe0cd;
}
.home-benefit .benefit-number {
    display: inline-block;
    margin-bottom: 1.5rem;
    font: 700 .74rem 'Inter', sans-serif;
    letter-spacing: .12em;
    color: var(--gm-green);
    padding: .35rem .7rem;
    background: #eef5ee;
    border-radius: 8px;
}
.home-benefit .b-icon {
    width: 54px; height: 54px; border-radius: 14px;
    display: grid; place-items: center;
    background: var(--gm-grad-bright);
    color: #fff; font-size: 1.35rem;
    margin-bottom: 1.4rem;
    box-shadow: 0 10px 22px rgba(31, 122, 77, .28);
}
.home-benefit h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700; font-size: 1.4rem;
    color: var(--gm-ink); margin-bottom: .7rem;
}
.home-benefit p { color: var(--gm-muted); margin: 0; line-height: 1.65; }

/* --------------------------------------------------------------------------
   Faixa "como funciona" (nova)
   -------------------------------------------------------------------------- */
.gm-steps { counter-reset: step; }
.gm-step {
    position: relative;
    padding: 1.8rem 1.6rem 1.6rem;
    border-radius: var(--gm-radius);
    background: var(--gm-sand);
    border: 1px solid var(--gm-line);
    height: 100%;
}
.gm-step::before {
    counter-increment: step;
    content: counter(step);
    display: grid; place-items: center;
    width: 38px; height: 38px;
    border-radius: 11px;
    background: var(--gm-forest); color: var(--gm-lime);
    font: 800 1.05rem 'Outfit', sans-serif;
    margin-bottom: 1rem;
}
.gm-step h4 { font-family: 'Outfit'; font-weight: 700; font-size: 1.15rem; margin-bottom: .4rem; }
.gm-step p { color: var(--gm-muted); font-size: .98rem; margin: 0; }

/* --------------------------------------------------------------------------
   CTA final
   -------------------------------------------------------------------------- */
.final-cta {
    position: relative;
    overflow: hidden;
    background: var(--gm-forest);
    color: #fff;
    border-radius: 40px 40px 0 0;
}
.final-cta::before {
    content: '';
    position: absolute; right: -160px; top: -220px;
    width: 460px; height: 460px; border-radius: 50%;
    border: 1px solid rgba(199,221,158,.20);
    box-shadow: 0 0 0 60px rgba(199,221,158,.06), 0 0 0 120px rgba(199,221,158,.035);
    pointer-events: none;
}
.final-cta::after {
    content: '';
    position: absolute; left: -140px; bottom: -200px;
    width: 380px; height: 380px; border-radius: 50%;
    background: radial-gradient(circle, rgba(52,193,122,.18), transparent 70%);
    pointer-events: none;
}
.final-cta .container { position: relative; z-index: 1; }
.final-cta .btn-primary-green {
    background: #fff; color: var(--gm-forest);
    box-shadow: 0 16px 40px rgba(0,0,0,.28);
}
.final-cta .btn-primary-green:hover { background: var(--gm-lime); color: var(--gm-forest); }

/* --------------------------------------------------------------------------
   Footer — refino
   -------------------------------------------------------------------------- */
footer { background: #0b1710; padding: 76px 0 36px; }
footer .social-ico {
    display: inline-grid; place-items: center;
    width: 40px; height: 40px; border-radius: 11px;
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.7);
    transition: background .25s, color .25s, transform .25s;
}
footer .social-ico:hover {
    background: var(--gm-green); color: #fff; transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Animação de entrada
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
    .gm-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.16,.84,.44,1); }
    .gm-reveal.is-visible { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Heróis das páginas internas (sobre, contato, planos, serviços, censo...)
   -------------------------------------------------------------------------- */
.hero-section:not(.hero-home) {
    position: relative;
    min-height: 62vh;
    display: flex;
    align-items: center;
    padding: 170px 0 90px;
    overflow: hidden;
}
.hero-section:not(.hero-home)::after {
    content: '';
    position: absolute; inset: auto 0 0 0; height: 42%;
    background: linear-gradient(transparent, rgba(6, 24, 14, .5));
    pointer-events: none;
}
.hero-section:not(.hero-home) .container { position: relative; z-index: 2; }
.hero-section .heading-xl {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: 1.04;
    letter-spacing: -.03em;
    color: #fff;
    margin: 1.2rem auto 1.3rem;
}
.hero-section .subheading { color: rgba(255,255,255,.9); font-size: clamp(1.05rem, 1.5vw, 1.28rem); }

/* Hero "flat" (verde, sem foto) — usado por serviços e como fallback */
.hero-flat {
    position: relative;
    background: linear-gradient(135deg, var(--gm-forest-deep) 0%, var(--gm-forest) 60%, #16472f 100%);
    color: #fff;
    overflow: hidden;
}
.hero-flat::before {
    content: '';
    position: absolute; right: -120px; top: -160px;
    width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, rgba(52,193,122,.20), transparent 68%);
    pointer-events: none;
}
.hero-flat .container { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   Cards de serviço (página Serviços)
   -------------------------------------------------------------------------- */
.service-card {
    background: #fff;
    border: 1px solid var(--gm-line);
    border-radius: var(--gm-radius);
    padding: 2.2rem;
    box-shadow: var(--gm-shadow-sm);
    transition: transform .35s cubic-bezier(.16,.84,.44,1), box-shadow .35s, border-color .35s;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--gm-shadow);
    border-color: #cfe0cd;
}
.service-card .s-icon {
    width: 54px; height: 54px; border-radius: 14px;
    display: grid; place-items: center;
    background: var(--gm-grad-bright); color: #fff; font-size: 1.35rem;
    margin-bottom: 1.3rem;
    box-shadow: 0 10px 22px rgba(31, 122, 77, .26);
}
.service-card h3 { font-family: 'Outfit'; font-weight: 700; font-size: 1.25rem; }
.service-badge {
    position: absolute; top: 18px; right: 18px;
    background: #eef5ee; color: var(--gm-green);
    padding: .35rem .8rem; border-radius: 999px;
    font: 700 .7rem 'Inter'; letter-spacing: .06em; text-transform: uppercase;
}
.service-list { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.service-list li { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: .7rem; font-size: .94rem; color: var(--gm-muted); }
.service-list li i { color: var(--gm-green-bright); margin-top: .2rem; }

.cta-area {
    background: var(--gm-sand);
    border: 1px solid var(--gm-line);
    border-radius: var(--gm-radius-lg);
    padding: 3.4rem;
    text-align: center;
    box-shadow: var(--gm-shadow-sm);
}

/* --------------------------------------------------------------------------
   Formulários (contato)
   -------------------------------------------------------------------------- */
.contact-form {
    background: #fff;
    border: 1px solid var(--gm-line);
    border-radius: var(--gm-radius-lg);
    padding: 2.8rem;
    box-shadow: var(--gm-shadow);
}
.form-control, .form-select {
    border: 1px solid var(--gm-line);
    border-radius: 12px;
    padding: .7rem .9rem;
    background: #fbfcfa;
    transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--gm-green-bright);
    box-shadow: 0 0 0 3px rgba(52,193,122,.15);
    background: #fff;
}
.form-label { font-weight: 600; color: var(--gm-ink); font-size: .9rem; margin-bottom: .35rem; }

/* Cartão informativo genérico (contato/sobre) */
.info-tile {
    background: #fff; border: 1px solid var(--gm-line);
    border-radius: var(--gm-radius); padding: 1.8rem;
    box-shadow: var(--gm-shadow-sm); height: 100%;
    transition: transform .3s, box-shadow .3s;
}
.info-tile:hover { transform: translateY(-5px); box-shadow: var(--gm-shadow); }
.info-tile .t-icon {
    width: 50px; height: 50px; border-radius: 13px; margin: 0 auto 1rem;
    display: grid; place-items: center;
    background: #eef5ee; color: var(--gm-green); font-size: 1.2rem;
}
.info-tile h5 { font-family: 'Outfit'; font-weight: 700; margin-bottom: .3rem; }
.info-tile p { color: var(--gm-muted); margin: 0; }

/* Cartão "valores" (sobre) */
.values-card {
    background: #fff; border: 1px solid var(--gm-line);
    border-left: 5px solid var(--gm-green-bright);
    border-radius: var(--gm-radius);
    padding: 2.4rem; box-shadow: var(--gm-shadow);
}
.check-row { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.check-row .ico {
    flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px;
    display: grid; place-items: center; background: #e7f1e8; color: var(--gm-green); font-size: .85rem;
}

/* Botões auxiliares no novo tom */
.btn-outline-success {
    border-color: var(--gm-green); color: var(--gm-green); border-radius: 12px; font-weight: 600;
}
.btn-outline-success:hover { background: var(--gm-green); border-color: var(--gm-green); }

/* --------------------------------------------------------------------------
   Responsivo
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .section-padding { padding: 84px 0; }
    .hero-stats { gap: 1.8rem; }
}
@media (max-width: 768px) {
    .hero-home { min-height: auto; padding: 130px 0 70px; background-attachment: scroll; }
    .hero-home .heading-xl { font-size: clamp(2.4rem, 11vw, 3.6rem); }
    .hero-cta-row .btn-primary-green,
    .hero-cta-row .btn-hero-secondary { width: min(100%, 320px); justify-content: center; }
    .hero-stats { gap: 1.4rem 2.2rem; margin-top: 2.6rem; }
    .map-frame { height: 400px; }
}
