/* AgroShield — component styles used by patterns and templates. */

:root {
  --as-radius-s: 12px; --as-radius-m: 20px; --as-radius-l: 28px;
  --as-shadow: 0 20px 40px rgba(0, 0, 0, .18);
}

/* Layout helpers ------------------------------------------------- */
.as-section { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--60); }
.as-section--tight { padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--50); }
.as-section--band { padding-top: var(--wp--preset--spacing--40); padding-bottom: var(--wp--preset--spacing--40); }
.as-on-dark, .as-on-dark p, .as-on-dark li { color: var(--wp--preset--color--sage); }
.as-on-dark h1, .as-on-dark h2, .as-on-dark h3, .as-on-dark h4, .as-on-dark strong { color: var(--wp--preset--color--white); }
.as-on-dark a:not(.wp-block-button__link) { color: var(--wp--preset--color--white); }
.as-lime { color: var(--wp--preset--color--lime) !important; }
.as-white { color: var(--wp--preset--color--white) !important; }
.as-hero-shape { position: relative; overflow: hidden; }
.as-hero-shape::after { content: ""; position: absolute; right: -120px; bottom: -180px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(134, 191, 46, .08); pointer-events: none; }
.as-hero-shape > * { position: relative; z-index: 1; }

/* Paragraph styles ---------------------------------------------- */
.is-style-eyebrow { display: flex; align-items: center; gap: .6rem; font-size: .8125rem; letter-spacing: 3px; font-weight: 600; text-transform: uppercase; color: var(--wp--preset--color--leaf); }
.is-style-eyebrow::before { content: ""; width: 32px; height: 2px; background: currentColor; display: inline-block; }
.as-on-dark .is-style-eyebrow { color: var(--wp--preset--color--lime); }
.is-style-lead { font-size: 1.25rem; line-height: 1.6; }
.is-style-stat { font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: 2.75rem; line-height: 1; margin-bottom: .25rem !important; }

/* Cards ---------------------------------------------------------- */
.is-style-card, .is-style-card-dark, .is-style-card-lime { border-radius: var(--as-radius-m); padding: 2rem; box-sizing: border-box; }
.is-style-card { background: var(--wp--preset--color--ground); }
.wp-block-group.has-white-background-color.is-style-card, .as-bg-white .is-style-card { background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--line); }
.is-style-card-dark { background: var(--wp--preset--color--forest); color: var(--wp--preset--color--sage); }
.is-style-card-dark h2, .is-style-card-dark h3, .is-style-card-dark h4 { color: var(--wp--preset--color--white); }
.is-style-card-dark .is-style-eyebrow { color: var(--wp--preset--color--lime); }
.is-style-card-dark p, .is-style-card-dark li { color: var(--wp--preset--color--sage); }
.is-style-card-dark a:not(.wp-block-button__link), .is-style-card-dark h3 a, .is-style-card-dark h4 a { color: var(--wp--preset--color--white); }
.is-style-card-dark .as-icon { background: rgba(255, 255, 255, .08); }
.is-style-card-dark .as-icon--lime, .as-on-dark .as-icon--lime { background: var(--wp--preset--color--lime); color: var(--wp--preset--color--forest); }
.is-style-card-dark .as-icon--water { background: var(--wp--preset--color--water); color: #fff; }
.is-style-card-lime a:not(.wp-block-button__link) { color: var(--wp--preset--color--forest); }
.is-style-card-lime .as-icon { background: var(--wp--preset--color--forest); color: var(--wp--preset--color--lime); }
.as-section .wp-block-image img, .as-section .wp-block-image figure { width: 100%; }
.is-style-card-lime { background: var(--wp--preset--color--lime); color: var(--wp--preset--color--forest); }
.is-style-card-lime h2, .is-style-card-lime h3, .is-style-card-lime h4, .is-style-card-lime .is-style-eyebrow, .is-style-card-lime p { color: var(--wp--preset--color--forest); }
.as-card-link { display: block; color: inherit; text-decoration: none; transition: transform .15s ease; }
.as-card-link:hover { transform: translateY(-2px); }

/* Icon tile (paragraphs/HTML with an SVG) ----------------------- */
.as-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--wp--preset--color--forest); display: inline-flex; align-items: center; justify-content: center; color: var(--wp--preset--color--lime); margin-bottom: 1rem; }
.as-icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.as-icon--water { background: var(--wp--preset--color--water); color: #fff; }
.as-icon--lime { background: var(--wp--preset--color--lime); color: var(--wp--preset--color--forest); }
.as-icon--sm { width: 44px; height: 44px; border-radius: 12px; margin: 0; } .as-icon--sm svg { width: 22px; height: 22px; }

/* SDG pills ------------------------------------------------------ */
.as-sdg { display: inline-flex; align-items: center; gap: .6rem; padding: .5rem 1rem .5rem .5rem; border-radius: 999px; background: #fff; border: 1px solid var(--wp--preset--color--line); font-size: .875rem; font-weight: 500; color: var(--wp--preset--color--ink); }
.as-sdg__n { width: 34px; height: 34px; border-radius: 50%; background: var(--wp--preset--color--forest); color: #fff; font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: 1.05rem; display: inline-flex; align-items: center; justify-content: center; }
.as-sdg__n--water { background: var(--wp--preset--color--water); } .as-sdg__n--leaf { background: var(--wp--preset--color--leaf); }

/* Buttons -------------------------------------------------------- */
.is-style-outline-light .wp-block-button__link { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .5); }
.is-style-outline-light .wp-block-button__link:hover { border-color: #fff; background: rgba(255, 255, 255, .06); color: #fff; }
.is-style-outline-dark .wp-block-button__link { background: transparent; color: var(--wp--preset--color--forest); border: 2px solid var(--wp--preset--color--forest); }
.is-style-outline-dark .wp-block-button__link:hover { background: var(--wp--preset--color--forest); color: #fff; }
.as-btn-forest .wp-block-button__link { background: var(--wp--preset--color--forest); color: #fff; }

/* Check list ----------------------------------------------------- */
.is-style-checks { list-style: none; padding-left: 0; }
.is-style-checks li { position: relative; padding-left: 1.8rem; margin-bottom: .5rem; }
.is-style-checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%; border: 1.8px solid var(--wp--preset--color--leaf); background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F8A1E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M7.5 12.5l3 3 6-6'/></svg>") center/14px no-repeat; }

/* Quote banner --------------------------------------------------- */
.as-quote-banner blockquote { text-align: center; max-width: 1000px; margin: 0 auto; }
.as-quote-banner blockquote p { color: #fff; }
.as-quote-banner cite { display: block; margin-top: 1.5rem; font-family: var(--wp--preset--font-family--body); font-size: .875rem; letter-spacing: 3px; font-style: normal; text-transform: uppercase; color: var(--wp--preset--color--sage); }
.as-quote-banner cite::before { content: ""; display: block; width: 220px; height: 3px; background: var(--wp--preset--color--lime); margin: 0 auto 1rem; }

/* Header / footer ------------------------------------------------ */
.as-logo-tile { width: 58px; height: 58px; border-radius: 14px; background: #fff; padding: 5px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; }
.as-logo-tile img { width: 100%; height: 100%; object-fit: contain; }
.as-brand-mark { font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: 1.65rem; line-height: 1; letter-spacing: .5px; text-transform: uppercase; color: #fff; }
.as-brand-mark span { color: var(--wp--preset--color--lime); }
.as-brand-sub { font-size: .625rem; letter-spacing: 3px; font-weight: 500; color: var(--wp--preset--color--sage); text-transform: uppercase; line-height: 1; }
.as-header .wp-block-navigation a { color: var(--wp--preset--color--sage); }
.as-header .wp-block-navigation .current-menu-item > a { color: #fff; }
.as-header .wp-block-navigation a:hover { color: #fff; }
.as-footer { background: var(--wp--preset--color--forest-deep); }
.as-footer, .as-footer p, .as-footer a { color: var(--wp--preset--color--sage); }
.as-footer h4 { font-family: var(--wp--preset--font-family--body); font-size: .75rem; letter-spacing: 3px; color: var(--wp--preset--color--lime); }
.as-footer .wp-block-navigation a { color: var(--wp--preset--color--sage); }
.as-footer .wp-block-navigation a:hover { color: #fff; }
.as-footer-bar { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 1.5rem; font-size: .75rem; color: #8FA38E; }
.as-social { display: flex; gap: .6rem; }
.as-social a { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.as-social a:hover { background: var(--wp--preset--color--lime); color: var(--wp--preset--color--forest); }
.as-bg-light .as-social a, .as-section:not(.as-on-dark) .as-social a { background: var(--wp--preset--color--forest); color: #fff; }
.as-section:not(.as-on-dark) .as-social a:hover { background: var(--wp--preset--color--lime); color: var(--wp--preset--color--forest); }

/* Blog ----------------------------------------------------------- */
.as-cats ul, .as-cats.wp-block-categories-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.as-cats li { margin: 0; }
.as-cats li a { display: inline-flex; align-items: center; padding: .55rem 1.1rem; border-radius: 999px; background: #fff; border: 1px solid var(--wp--preset--color--line); font-size: .875rem; font-weight: 500; color: var(--wp--preset--color--forest); text-decoration: none; }
.as-cats li a:hover, .as-cats li.current-cat a { background: var(--wp--preset--color--forest); border-color: var(--wp--preset--color--forest); color: #fff; }
.as-cats .cat-item-none { display: none; }
.wp-block-post-terms.as-cat a, .as-cat .wp-block-post-terms a, .as-cat-pill { display: inline-flex; padding: .35rem .75rem; border-radius: 999px; background: var(--wp--preset--color--forest); color: #fff; font-size: .75rem; font-weight: 600; text-decoration: none; }
.as-post-card { border-radius: var(--as-radius-m); overflow: hidden; background: #fff; border: 1px solid var(--wp--preset--color--line); height: 100%; }
.as-post-card .wp-block-post-featured-image img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.as-post-card .wp-block-post-title { font-size: 1.6rem; line-height: 1.05; }
.as-post-card .wp-block-post-title a { color: var(--wp--preset--color--forest); }
.as-meta { font-size: .8125rem; color: var(--wp--preset--color--ink-muted); }
.as-article .wp-block-post-content { font-size: 1.0625rem; line-height: 1.75; }
.as-article .wp-block-post-content h2 { font-size: 2.1rem; margin-top: 2rem; }
.as-callout { display: flex; gap: 1rem; padding: 1.5rem 1.75rem; border-radius: 18px; background: var(--wp--preset--color--ground); border-left: 5px solid var(--wp--preset--color--lime); }
.as-author-box { display: flex; gap: 1rem; align-items: center; padding: 1.5rem; border-radius: 18px; background: var(--wp--preset--color--ground); }
.as-author-box .wp-block-avatar img { border-radius: 50%; }
.as-pagination .wp-block-query-pagination-numbers a, .as-pagination .wp-block-query-pagination-numbers .current, .as-pagination .wp-block-query-pagination-next, .as-pagination .wp-block-query-pagination-previous { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 .8rem; border-radius: 12px; background: #fff; border: 1px solid var(--wp--preset--color--line); font-weight: 600; font-size: .875rem; color: var(--wp--preset--color--forest); }
.as-pagination .wp-block-query-pagination-numbers .current { background: var(--wp--preset--color--forest); color: #fff; }
.as-search .wp-block-search__input { border-radius: 999px; border: 1px solid var(--wp--preset--color--line); padding: .7rem 1.2rem; }
.as-search .wp-block-search__button { border-radius: 999px; background: var(--wp--preset--color--forest); color: #fff; border: 0; padding: 0 1.2rem; }

/* Map / forms ----------------------------------------------------- */
.as-map { border-radius: var(--as-radius-l); overflow: hidden; aspect-ratio: 16 / 7; }
.as-map iframe { width: 100%; height: 100%; border: 0; }
.as-map-placeholder { border-radius: var(--as-radius-l); background: var(--wp--preset--color--ground-dark); border: 2px dashed rgba(134, 191, 46, .6); padding: 4rem 2rem; text-align: center; color: var(--wp--preset--color--ink-muted); }
.as-form-card { border-radius: var(--as-radius-l); background: #fff; border: 1px solid var(--wp--preset--color--line); padding: 2.25rem; }
.as-form-card input[type="text"], .as-form-card input[type="email"], .as-form-card textarea, .as-form-card select { width: 100%; border: 2px solid var(--wp--preset--color--line); border-radius: 12px; padding: .8rem .9rem; font-family: inherit; font-size: .95rem; }
.as-form-card input:focus, .as-form-card textarea:focus { outline: 2px solid var(--wp--preset--color--lime); outline-offset: 1px; }

/* Value / small cards: keep headings on one word per line -------- */
.is-style-card h4 { font-size: 1.3rem; letter-spacing: 0; overflow-wrap: normal; word-break: keep-all; }
.is-style-card, .is-style-card-dark, .is-style-card-lime { min-width: 0; }
.as-values .is-style-card { padding: 1.5rem 1.25rem; }
@media (min-width: 782px) and (max-width: 1100px) {
  .as-values { flex-wrap: wrap !important; }
  .as-values .wp-block-column { flex-basis: calc(33.333% - 1rem) !important; flex-grow: 0; }
}

/* Program numbering / stats bar --------------------------------- */
.as-number { font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: 1.25rem; color: var(--wp--preset--color--leaf); }
.as-approach-num { font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: 2rem; line-height: 1; color: var(--wp--preset--color--lime); }
.as-stats .wp-block-column { padding-right: 1.5rem; }
.as-stats .wp-block-column + .wp-block-column { border-left: 1px solid rgba(11, 54, 26, .18); padding-left: 1.5rem; }
.as-stats p { color: var(--wp--preset--color--forest); }

@media (max-width: 781px) {
  .as-stats .wp-block-column + .wp-block-column { border-left: 0; padding-left: 0; }
  .as-hero-shape::after { display: none; }
  .is-style-card, .is-style-card-dark, .is-style-card-lime { padding: 1.5rem; }
}

/* v1.1 additions ------------------------------------------------ */
.as-on-lime, .as-on-lime p, .as-on-lime h2, .as-on-lime a { color: var(--wp--preset--color--forest); }
.as-on-lime .is-style-eyebrow { color: var(--wp--preset--color--forest); }
.as-board-card { text-align: left; }
.as-board-card .wp-block-post-featured-image img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.as-board-card .wp-block-post-title { font-size: 1.4rem; margin-top: .9rem; }
.as-board-card .wp-block-post-title a { color: var(--wp--preset--color--forest); }
.as-board-role { color: var(--wp--preset--color--ink-muted); }
.as-on-dark .as-board-role { color: var(--wp--preset--color--sage); }
.as-board-link { display: inline-block; margin-top: .5rem; font-weight: 600; font-size: .9rem; color: var(--wp--preset--color--forest); }
.as-table table { border-collapse: separate; border-spacing: 0; width: 100%; border: 1px solid var(--wp--preset--color--line); border-radius: 16px; overflow: hidden; }
.as-table th { background: var(--wp--preset--color--forest); color: #fff; text-align: left; padding: .9rem 1.1rem; font-family: var(--wp--preset--font-family--display); font-size: 1.1rem; letter-spacing: .5px; text-transform: uppercase; }
.as-table td { padding: .9rem 1.1rem; border-top: 1px solid var(--wp--preset--color--line); vertical-align: top; }
.as-table tr:nth-child(even) td { background: var(--wp--preset--color--ground); }
.as-credit { font-size: .75rem; color: #8FA38E; }
.as-credit a { color: var(--wp--preset--color--sage); }

/* v1.2: metrics + board ---------------------------------------- */
.as-metric { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--wp--preset--color--line); }
.as-metric__v { font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: 1.9rem; line-height: 1; color: var(--wp--preset--color--forest); }
.as-metric__l { font-size: .75rem; line-height: 1.35; color: var(--wp--preset--color--ink-muted); }
.as-member-details { display: flex; flex-direction: column; gap: .5rem; }
.as-member-details .as-board-role { margin: 0; font-size: .875rem; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--wp--preset--color--leaf); }
.as-on-dark .as-member-details .as-board-role { color: var(--wp--preset--color--lime); }
.as-social--sm a { width: 36px; height: 36px; }
.as-board-card { padding: 1.25rem; border-radius: 20px; background: var(--wp--preset--color--ground); }
.as-board-card .wp-block-post-featured-image img { border-radius: 16px; }
.as-board-card .wp-block-post-excerpt { margin: .25rem 0 .5rem; }
.as-board-card .wp-block-post-excerpt p { font-size: .9rem; color: var(--wp--preset--color--ink-muted); }
