/* css/style.css */
:root { --agro-green: #1b5e20; --agro-light: #2e7d32; --bg-body: #f4f6f9; --agro-border: #dfe7e1; --agro-radius: .75rem; }
body { background-color: var(--bg-body); font-family: 'Segoe UI', system-ui, sans-serif; scroll-behavior: smooth; color: #26332a; }

/* Shared layout and components for tool modules */
.tool-view { min-width: 0; }
.tool-view h1, .tool-view h2 { color: var(--agro-green); font-weight: 700; line-height: 1.25; }
.tool-view h1 { font-size: clamp(1.45rem, 2.2vw, 2rem); }
.tool-view h2 { font-size: clamp(1.25rem, 1.8vw, 1.65rem); }
.tool-view .card { border-radius: var(--agro-radius); }
.tool-view .card-header { border-radius: var(--agro-radius) var(--agro-radius) 0 0; }
.tool-view .form-control, .tool-view .form-select { min-height: 42px; border-radius: .55rem; border-color: #d5dfd7; }
.tool-view textarea.form-control { min-height: 92px; }
.tool-view .form-label { font-size: .875rem; font-weight: 600; color: #344d3d; }
.tool-view .btn { border-radius: .55rem; font-weight: 600; }
.tool-view .table { --bs-table-border-color: #e1e7e2; }
.tool-view .alert { border-radius: .7rem; }
.ad-container .ad-label { display: inline-block; flex: 0 0 auto; width: max-content; max-width: 100%; box-sizing: border-box; margin: 0 auto 6px; padding: 3px 9px; border: 1px solid #cbd5ce; border-radius: 999px; background: #e7ece8 !important; color: #34443a !important; font-size: .68rem; font-weight: 700; line-height: 1.25; letter-spacing: .045em; text-transform: uppercase; }
.legal-page { max-width: 980px; }
.legal-page h1 { margin-bottom: .5rem; }
.legal-page h2 { color: #225b39; }
.legal-page .legal-copy > p:not(.legal-updated), .legal-page .legal-copy li { text-align: justify; text-justify: inter-word; hyphens: auto; line-height: 1.7; }
.legal-page .legal-updated { margin-bottom: 1.25rem; text-align: left; }
.legal-page ul { padding-left: 1.4rem; }
.ad-image { display: block; max-width: 100%; max-height: 180px; margin: auto; object-fit: contain; }

/* NAVBAR RESPONSIVA */
.navbar-agro { background-color: var(--agro-green); box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
.navbar-agro .nav-link { color: rgba(255,255,255,0.85); font-weight: 500; transition: 0.2s; font-size: 1.05rem; }
.navbar-agro .nav-link:hover, .navbar-agro .nav-link.active { color: #fff; font-weight: 700; }
.navbar-toggler { border-color: rgba(255,255,255,0.5); }
.navbar-toggler:focus { box-shadow: none; }

.hero-section { background: linear-gradient(120deg, #1b5e20 0%, #267543 55%, #144631 100%); padding: 60px 0; color: white; text-align: center; margin-top: -24px; margin-bottom: 30px; }

/* BLOCOS DE ADSENSE */
.adsense-box { background: #e9ecef; border: 2px dashed #ced4da; color: #6c757d; border-radius: 8px; padding: 20px; text-align: center; margin-bottom: 30px; display: flex; justify-content: center; align-items: center; min-height: 90px; font-weight: bold; }

/* TICKETS DAS FERRAMENTAS */
.ticket-tool { background: white; border-radius: 12px; padding: 15px 10px; text-align: center; box-shadow: 0 4px 8px rgba(0,0,0,0.05); text-decoration: none; display: block; color: inherit; transition: 0.3s; border: 2px solid transparent; height: 100%;}
.ticket-tool:hover, .ticket-tool.active { transform: translateY(-5px); border-color: var(--agro-light); box-shadow: 0 8px 15px rgba(46,125,50,0.15); color: inherit;}
.ticket-tool i { font-size: 2rem; color: var(--agro-green); margin-bottom: 10px; }
.ticket-tool h6 { font-weight: 700; margin: 0; font-size: 0.9rem; }

/* RODAPÉ ALTO CONTRASTE */
.footer-agro { background-color: #1a1a1a; color: #f8f9fa; padding: 50px 0 20px; margin-top: 50px; }
.footer-agro h5 { color: #fff; font-weight: 700; margin-bottom: 1.2rem; }
.footer-agro a { color: #e0e0e0; text-decoration: none; transition: 0.3s; }
.footer-agro a:hover { color: #f57f17; padding-left: 4px; }

@media (max-width: 575.98px) {
  .tool-view > .container { padding-left: .75rem; padding-right: .75rem; }
  .home-tool-grid .card-menu { min-height: 124px; }
}
