/* =====================================================================
   Pró-Terra v2 — cabeçalho, megamenu, menu mobile e rodapé.
   Usado em todas as páginas (inclusive as que ainda carregam site.css),
   por isso tudo fica escopado em .hd / .drawer / .ft / .hd-dim, com
   variáveis e botões próprios.
   ===================================================================== */
.hd, .drawer, .ft, .hd-dim {
    --g: #449B3A;
    --g2: #2F6E28;
    --g3: #e8f5e4;
    --ink: #16241a;
    --muted: rgba(22, 36, 26, 0.66);
    --line: #e2e7e0;
    --soft: #f4f6f3;
    --f: 'Sora', sans-serif;
    font-family: var(--f);
}

.hd *, .drawer *, .ft * { box-sizing: border-box; }
.hd a, .drawer a, .ft a { color: inherit; text-decoration: none; }
.hd ul, .drawer ul, .ft ul { list-style: none; margin: 0; padding: 0; }
.hd img, .drawer img, .ft img { display: block; max-width: 100%; }
.hd [hidden] { display: none !important; }

/* botões do cabeçalho/rodapé (independentes do .btn do site.css) */
.hd .btn, .drawer .btn, .ft .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; border: 1px solid transparent; border-radius: 100px;
    font-family: var(--f); font-size: 15px; font-weight: 500; line-height: 1.2;
    letter-spacing: normal; text-transform: none; white-space: nowrap; text-decoration: none;
    cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.hd .btn-green, .drawer .btn-green { background: var(--g); color: #fff; }
.hd .btn-green:hover, .drawer .btn-green:hover { background: var(--g2); }
.hd .btn-line-dark, .drawer .btn-line-dark { border-color: #c9d0c6; background: #fff; color: var(--ink); }
.hd .btn-line-dark:hover, .drawer .btn-line-dark:hover { border-color: var(--g); color: var(--g2); }
.ft .btn-white { background: #fff; color: var(--ink); }
.ft .btn-white:hover { background: var(--g3); }
.ft .btn-line { border-color: rgba(255, 255, 255, .8); color: #fff; }
.ft .btn-line:hover { background: rgba(255, 255, 255, .12); }

/* ===================== CABEÇALHO =====================
   Uma linha: logo | menu central | atalhos. Transparente sobre o vídeo da
   home; faixa branca ao rolar, com menu aberto ou em páginas internas. */
.hd { position: fixed; inset: 0 0 auto; z-index: 500; color: #fff; transition: background .2s, box-shadow .2s; }
.hd-shell { position: relative; }
.hd-bar { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: 'logo nav actions'; align-items: center; width: min(1440px, 100%); margin: 0 auto; padding: 0 64px; color: inherit; }
.hd svg { width: 20px; height: 20px; flex-shrink: 0; }
.hd-logo { grid-area: logo; display: flex; align-items: center; height: 88px; }
.hd-logo img { height: 60px; width: auto; }
.hd-nav { grid-area: nav; display: flex; align-items: center; gap: 6px; }
.hd-link { position: relative; display: inline-flex; align-items: center; gap: 5px; padding: 10px 14px; border: 0; background: none; color: inherit; font-family: var(--f); font-size: 16px; font-weight: 500; cursor: pointer; }
.hd-link::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: #7ed36b; transform: scaleX(0); transition: transform .2s; }
.hd-link:hover::after, .hd-link.open::after, .hd-link.current::after { transform: scaleX(1); }
.hd-link .caret { width: 15px; height: 15px; opacity: .7; transition: transform .2s; }
.hd-link.open .caret { transform: rotate(180deg); }
.hd-actions { grid-area: actions; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.hd-round { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); color: inherit; transition: background .2s, border-color .2s, color .2s; }
.hd-round:hover { background: #25d366; border-color: #25d366; color: #fff; }
.hd-pill { display: inline-flex; align-items: center; height: 46px; padding: 0 24px; border-radius: 100px; background: var(--g); color: #fff !important; font-size: 15px; font-weight: 600; white-space: nowrap; transition: background .2s; }
.hd-pill:hover { background: var(--g2); }
.hd-burger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; border: 0; background: none; color: inherit; cursor: pointer; }
.hd-burger span { width: 22px; height: 2px; border-radius: 2px; background: currentColor; }

/* seletor de idioma (mantém a estrutura usada pelo I18n e language-dropdown.js) */
.hd .language-dropdown { position: relative; flex-shrink: 0; }
.hd .language-dropdown summary { list-style: none; }
.hd .language-dropdown summary::-webkit-details-marker { display: none; }
.hd .lang-trigger { display: inline-flex; align-items: center; gap: 6px; height: 44px; min-width: 0; padding: 0 12px; border: 0; border-radius: 12px; background: none; color: inherit; box-shadow: none; cursor: pointer; transition: background .2s; }
.hd .lang-trigger:hover, .hd .language-dropdown[open] .lang-trigger { background: rgba(255, 255, 255, .12); border: 0; box-shadow: none; color: inherit; }
.hd .lang-icon { width: 20px; height: 20px; display: block; }
.hd .lang-current { font-size: 14px; font-weight: 600; letter-spacing: 0; }
.hd .lang-caret { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .7; }
.hd .lang-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 10; min-width: 168px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 18px 40px rgba(17, 26, 15, .14); }
.hd .lang-option { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: none; color: var(--ink); font-family: var(--f); font-size: 14px; font-weight: 500; text-align: left; cursor: pointer; }
.hd .lang-option:hover, .hd .lang-option.active { background: var(--g3); color: var(--g2); }
.hd .lang-option.active::after { content: ''; width: 6px; height: 6px; margin-left: auto; border-radius: 50%; background: var(--g); }

/* faixa branca */
.hd.scrolled, .hd.menu-open, .hd.hd-solid { background: #fff; color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.hd.scrolled .hd-round, .hd.menu-open .hd-round, .hd.hd-solid .hd-round { border-color: #d3d9d0; }
.hd.scrolled .lang-trigger:hover, .hd.menu-open .lang-trigger:hover, .hd.hd-solid .lang-trigger:hover,
.hd.scrolled .language-dropdown[open] .lang-trigger, .hd.hd-solid .language-dropdown[open] .lang-trigger { background: var(--soft); }
.hd.scrolled .hd-link::after, .hd.menu-open .hd-link::after, .hd.hd-solid .hd-link::after { background: var(--g); }

/* ===================== MEGAMENU ===================== */
.mega { position: absolute; left: 0; right: 0; top: 100%; overflow: hidden; border-top: 1px solid var(--line); border-radius: 0 0 18px 18px; background: #fff; color: var(--ink); box-shadow: 0 30px 60px rgba(0, 0, 0, .18); visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility 0s .18s; }
.mega.open { visibility: visible; opacity: 1; transform: none; transition: opacity .18s, transform .18s; }
.mega-inner { display: grid; grid-template-columns: minmax(0, 1fr) 420px; width: min(1440px, 100%); margin: 0 auto; padding-left: 64px; }
.mega-left, .mega-equip { padding: 34px 48px 40px 0; }
.mega-right { position: relative; padding: 34px 64px 40px 48px; background: var(--soft); }
.mega-right::after { content: ''; position: absolute; top: 0; bottom: 0; left: 100%; width: 100vw; background: var(--soft); }
.mega-kicker { margin-bottom: 18px; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.mega-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 32px; }
.mega-item { display: flex; gap: 16px; margin-left: -12px; padding: 12px; border-radius: 10px; }
.mega-item:hover { background: var(--soft); }
.mega-item-ico svg { width: 30px; height: 30px; color: var(--g2); }
.mega-item strong { display: block; font-size: 17px; font-weight: 600; }
.mega-item small { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.mega-item:hover strong { color: var(--g2); }
.mega-points { display: grid; gap: 16px; }
.mega-points li { display: flex; align-items: flex-start; gap: 14px; font-size: 16px; line-height: 1.45; }
.mega-points svg { width: 28px; height: 28px; color: var(--g2); }
.mega-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.mega-equipamentos { grid-template-columns: minmax(0, 1fr) 400px; }
.mega-equip { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; }
.mega-cats { display: grid; align-content: start; gap: 2px; padding-right: 28px; border-right: 1px solid var(--line); }
.mega-cat { display: flex; align-items: center; gap: 14px; margin-left: -12px; padding: 11px 12px; border-radius: 10px; }
.mega-cat-ico { width: 24px; height: 24px; flex-shrink: 0; color: var(--g2); }
.mega-cat strong { display: block; font-size: 15px; font-weight: 600; }
.mega-cat.active { background: var(--g3); }
.mega-cat.active strong { color: var(--g2); }
.mega-items { display: grid; align-content: start; gap: 4px; }
.mega-link { display: block; margin-left: -14px; padding: 12px 14px; border-radius: 10px; }
.mega-link strong { display: block; font-size: 16px; font-weight: 600; }
.mega-link small { display: block; margin-top: 3px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.mega-link:hover { background: var(--soft); }
.mega-link:hover strong { color: var(--g2); }
.hd .mega-all { display: inline-block; margin-top: 12px; color: var(--g2); font-size: 15px; font-weight: 600; }
.hd .mega-all:hover { text-decoration: underline; }
.mega-photo { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 12px; background: #dfe6dc; }
.mega-photo img { width: 100%; height: 100%; object-fit: cover; }
.mega-brand { display: flex; align-items: center; gap: 12px; margin: 18px 0 10px; color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.mega-brand img { height: 26px; width: auto; }
.mega-feature p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }

.hd-dim { position: fixed; inset: 0; z-index: 490; background: rgba(10, 18, 12, .55); opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s; }
.hd-dim.on { opacity: 1; visibility: visible; transition: opacity .2s; }

/* ===================== MENU MOBILE ===================== */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 600; width: min(420px, 100%); padding: 0 22px 32px; overflow-y: auto; background: #fff; color: var(--ink); transform: translateX(100%); transition: transform .25s; }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.drawer-head img { height: 40px; width: auto; }
.drawer-close { width: 44px; height: 44px; border: 0; background: none; color: var(--ink); font-size: 32px; line-height: 1; cursor: pointer; }
.drawer summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; list-style: none; cursor: pointer; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer .caret { width: 18px; height: 18px; margin-left: auto; transition: transform .2s; }
.drawer details[open] > summary > .caret { transform: rotate(180deg); }
.dr-group { border-bottom: 1px solid var(--line); }
.dr-group > summary, .dr-plain { display: flex; padding: 18px 0; font-size: 18px; font-weight: 600; }
.dr-plain { border-bottom: 1px solid var(--line); }
.dr-group > a { display: block; padding: 10px 0 10px 4px; color: var(--muted); font-size: 16px; }
.dr-sub summary { justify-content: flex-start; padding: 11px 0; font-size: 15.5px; font-weight: 500; }
.dr-ico { width: 24px; height: 24px; flex-shrink: 0; color: var(--g2); }
.dr-sub a { display: block; padding: 8px 0 8px 36px; color: var(--muted); font-size: 15px; }
.dr-sub .dr-all { color: var(--g2); font-weight: 600; }
.dr-group[open] { padding-bottom: 10px; }
.dr-langs { display: flex; gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.dr-langs a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 100px; font-size: 14px; font-weight: 600; }
.dr-langs a.active { border-color: var(--g); background: var(--g3); color: var(--g2); }
.drawer-cta { display: grid; gap: 10px; margin-top: 24px; }

/* ===================== RODAPÉ ===================== */
.ft { position: relative; overflow: hidden; padding: 72px 0 0; border: 0; background: radial-gradient(circle at 0% 0%, rgba(68, 155, 58, .22), transparent 40%), #0f1a12; color: rgba(255, 255, 255, .7); font-size: 15px; line-height: 1.5; }
.ft-wrap { width: min(1440px, 100%); margin: 0 auto; padding: 0 64px; }
.ft-cta { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-bottom: 64px; padding: 44px 48px; border-radius: 20px; background: linear-gradient(120deg, var(--g) 0%, var(--g2) 100%); color: #fff; }
.ft-cta h2 { margin: 0; color: #fff; font-size: clamp(24px, 2.4vw, 34px); font-weight: 500; letter-spacing: -0.02em; text-transform: none; }
.ft-cta p { margin: 8px 0 0; max-width: 560px; color: rgba(255, 255, 255, .88); }
.ft-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ft-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 56px; }
.ft-brand img { height: 56px; width: auto; }
.ft-brand p { margin: 20px 0 0; max-width: 340px; line-height: 1.65; }
.ft-social { display: flex; gap: 10px; margin-top: 24px; }
.ft-social a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; color: #fff; transition: background .2s, border-color .2s; }
.ft-social a:hover { background: var(--g); border-color: var(--g); }
.ft-social svg { width: 20px; height: 20px; }
.ft h4 { margin: 0 0 14px; color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.ft h4.ft-gap { margin-top: 28px; }
.ft-col > a { display: block; padding: 5px 0; transition: color .2s; }
.ft-col > a:hover { color: #fff; }
.ft-unit { display: flex; align-items: flex-start; gap: 12px; padding: 6px 0; line-height: 1.4; }
.ft-unit img { width: 24px; height: 17px; margin-top: 3px; border-radius: 2px; object-fit: cover; }
.ft-unit strong { display: block; color: #fff; font-weight: 500; }
.ft-col > a.ft-contact { display: flex; align-items: center; gap: 10px; }
.ft-contact svg { width: 18px; height: 18px; color: #7ed36b; }
.ft-brands { display: flex; align-items: center; gap: 32px; padding: 26px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.ft-brands > span { flex-shrink: 0; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.ft-brands div { display: flex; flex-wrap: wrap; align-items: center; gap: 36px; }
.ft-brands img { height: 24px; width: auto; filter: brightness(0) invert(1); opacity: .6; transition: opacity .2s; }
.ft-brands img:hover { opacity: 1; }
.ft-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; }
.ft-bottom nav { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.ft-bottom a:hover { color: #fff; }
.ft-credit img { height: 26px; width: auto; opacity: .7; transition: opacity .2s; }
.ft-credit:hover img { opacity: 1; }

/* ===================== RESPONSIVO ===================== */
@media (max-width: 1180px) {
    .hd-bar, .mega-inner, .ft-wrap { padding-left: 40px; padding-right: 40px; }
    .mega-inner { padding-right: 0; }
    .hd-nav { gap: 0; }
    .hd-link { padding: 10px; }
    .hd-link::after { left: 10px; right: 10px; }
    .hd .lang-current, .hd .lang-trigger .lang-caret { display: none; }
    .hd-pill { padding: 0 18px; }
    .mega-equipamentos { grid-template-columns: minmax(0, 1fr) 320px; }
    .mega-equip { grid-template-columns: 260px minmax(0, 1fr); gap: 28px; }
    .mega-right { padding: 34px 40px 40px 32px; }
    .ft-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
    .hd-bar { grid-template-columns: auto 1fr; grid-template-areas: 'logo actions'; padding: 0 12px 0 20px; }
    .hd-logo { height: 72px; }
    .hd-logo img { height: 46px; }
    .hd-nav, .mega { display: none; }
    .hd-burger { display: flex; }
    .ft-wrap { padding-left: 20px; padding-right: 20px; }
    .ft-cta { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
    .ft-brands { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 620px) {
    .hd-pill, .hd .language-dropdown { display: none; }
    .ft-main { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .ft-bottom nav { gap: 14px; }
}

/* megamenu: categorias com muitos itens em duas colunas; altura limitada à tela */
.hd .mega-items-2col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 24px; }
.hd .mega-items-2col .mega-kicker, .hd .mega-items-2col .mega-all { grid-column: 1 / -1; }
.hd .mega-items-2col .mega-link { padding: 10px 14px; }
.hd .mega.open { max-height: calc(100vh - 88px); overflow-y: auto; overscroll-behavior: contain; }
.hd.scrolled .mega.open { max-height: calc(100vh - 88px); }
