/* Inner pages, posts and the insights list. Loaded after site.css. */

.ci-hero { position: relative; overflow: hidden; background: radial-gradient(120% 120% at 50% 0%, #0a4a36 0%, var(--hero) 50%, #052a22 100%); padding: 120px 0 110px; text-align: center; }
.ci-hero__curve { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ci-hero__in { position: relative; max-width: 980px; }
.ci-hero .eyebrow { font-size: 16px; letter-spacing: .1em; margin-bottom: 18px; }
.ci-hero .h1 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.1; }
.ci-back { font: 400 13px/1 var(--mono); letter-spacing: .08em; margin-bottom: 28px; }
.ci-back a { color: #9cc2ae; text-decoration: none; }
.ci-back a:hover { color: var(--lime); }

.ci-body { background: var(--cream); color: var(--ink); padding: 100px 24px 130px; }
.ci-body__in { max-width: 1120px; margin: 0 auto; font-size: 17px; line-height: 1.7; color: #2b2a26; }
.ci-body__in > *:first-child { margin-top: 0; }

.ci-row { max-width: 760px; margin: 0 auto 40px; }
.ci-row:last-child { margin-bottom: 0; }
.ci-row--2, .ci-row--3, .ci-row--4, .ci-row--5 { max-width: none; display: grid; grid-template-columns: var(--cols, repeat(auto-fit, minmax(0, 1fr))); gap: 48px; align-items: start; }
.ci-row--4, .ci-row--5 { gap: 20px; }
.ci-col > * + * { margin-top: 20px; }

.ci-body h2, .ci-body h3, .ci-body .ci-h { font-family: var(--serif); font-weight: 600; color: var(--ink); line-height: 1.15; letter-spacing: -.01em; margin: 0; }
.ci-body h2 { font-size: clamp(28px, 3vw, 40px); }
.ci-body h3 { font-size: clamp(22px, 2.2vw, 28px); }
.ci-body h4 { font: 700 18px/1.3 var(--sans); color: var(--ink); margin: 0; }
.ci-body h2 strong, .ci-body h3 strong { font-weight: 600; }
.ci-body .is-center { text-align: center; }
.ci-body * + h2, .ci-body * + h3 { margin-top: 36px; }
.ci-text p, .ci-body__in > p { margin: 0 0 1em; }
.ci-body__in > h2 + p, .ci-body__in > h3 + p { margin-top: 14px; }
.ci-text p:last-child { margin-bottom: 0; }
.ci-body a { color: #1f7a45; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ci-body a:hover { color: var(--orange); }
.ci-body ul { list-style: none; padding: 0; margin: 0 0 1em; }
.ci-body ul li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.ci-body ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px; border: 1.5px solid var(--orange); border-radius: 2px; }
.ci-body ol { padding-left: 1.3em; }

.ci-img { margin: 0; }
.ci-img img { width: 100%; height: auto; border-radius: 12px; }
.ci-img--lead { max-width: 900px; margin: 0 auto 56px; }
.ci-hr { border: 0; border-top: 1px solid rgba(255, 107, 26, .55); margin: 72px auto; max-width: 1120px; }
.ci-row:has(> .ci-col > .ci-hr:only-child) { max-width: none; }
.ci-btnrow { text-align: center; margin: 12px 0 0; }
.ci-body .btn { color: #0b2a1c; text-decoration: none; }
.ci-body .btn--green { color: var(--lime); }

.ci-box { position: relative; }
.ci-box__ic { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(154, 239, 87, .25); margin-bottom: 14px; }
.ci-box__t { font: 700 17px/1.3 var(--sans) !important; color: var(--ink); }
.ci-box__body { margin-top: 10px; font-size: 15px; color: #4a4843; }
.ci-row--4 .ci-col, .ci-row--5 .ci-col { background: #fffaf2; border: 1px solid #e8dfd0; border-radius: 12px; padding: 22px; height: 100%; }
.ci-row--4 .ci-col .ci-text, .ci-row--5 .ci-col .ci-text { font-size: 15px; line-height: 1.6; }

/* Genesis Blocks CTA used inside posts */
.ci-body .gb-block-cta { background: var(--green) !important; color: #cfe0d6; border-radius: 16px; padding: 48px 32px; margin: 56px 0 0; text-align: center; }
.ci-body .gb-cta-title { color: var(--mint) !important; font: 600 36px/1.15 var(--serif) !important; margin: 0 0 16px; }
.ci-body .gb-cta-text, .ci-body .gb-cta-text p { color: #cfe0d6 !important; font: 400 16px/1.6 var(--sans) !important; margin: 0 0 6px; }
.ci-body .gb-cta-text a { color: var(--lime); }
.ci-body .gb-cta-button { margin-top: 22px; }
.ci-body .gb-button { display: inline-flex; background: var(--lime) !important; color: #0b2a1c !important; font: 600 14px/1 var(--sans); padding: 15px 22px; border-radius: 8px; text-decoration: none; }

/* Embeds */
.ci-body .wp-block-embed { margin: 32px 0; }
.ci-body .wp-block-embed iframe, .ci-body iframe[src*="youtube"] { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; display: block; }
.ci-body figcaption { font-size: 13px; color: #6d6a64; margin-top: 10px; text-align: center; }

/* Contact */
.ci-inner--contact .ci-body { padding-top: 80px; }
.ci-inner--contact .ci-row--2 { grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr); gap: 56px; }
.ci-inner--contact .ci-row--2 > .ci-col:first-child { background: var(--green); color: #cfe0d6; border-radius: 16px; padding: 34px 30px; font-size: 15px; line-height: 1.7; }
.ci-inner--contact .ci-row--2 > .ci-col:first-child h4 { color: var(--mint); font: 600 26px/1.2 var(--serif); margin: 18px 0 8px; }
.ci-inner--contact .ci-row--2 > .ci-col:first-child a { color: var(--lime); }
.ci-inner--contact .ci-row--2 > .ci-col:first-child .ci-hr { display: none; }

.wpcf7 form > p, .wpcf7 .wpcf7-form > p { margin: 0 0 18px; }
.wpcf7 label { display: block; font: 600 13px/1.4 var(--sans); color: #2b2a26; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 input[type="url"], .wpcf7 input[type="number"], .wpcf7 select, .wpcf7 textarea {
  width: 100%; margin-top: 6px; padding: 14px 16px; font: 400 16px/1.4 var(--sans); color: var(--ink); background: #fffdf9; border: 1px solid #d9cfbf; border-radius: 8px; transition: border-color .2s, box-shadow .2s; }
.wpcf7 textarea { min-height: 160px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus { outline: 0; border-color: #1f7a45; box-shadow: 0 0 0 3px rgba(154, 239, 87, .35); }
.wpcf7 .wpcf7-list-item { margin: 0; }
.wpcf7 .wpcf7-acceptance label, .wpcf7 .wpcf7-list-item label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13px; line-height: 1.5; color: #4a4843; }
.wpcf7 input[type="checkbox"] { margin-top: 3px; accent-color: #1f7a45; width: 16px; height: 16px; flex: none; }
.wpcf7 input[type="submit"], .wpcf7 .wpcf7-submit { appearance: none; border: 0; cursor: pointer; background: var(--lime); color: #0b2a1c; font: 600 15px/1 var(--sans); padding: 17px 28px; border-radius: 8px; transition: box-shadow .2s, transform .2s; }
.wpcf7 input[type="submit"]:hover { box-shadow: 0 8px 30px rgba(154, 239, 87, .45); transform: translateY(-1px); }
.wpcf7 .wpcf7-not-valid-tip { color: #d4520c; font-size: 13px; margin-top: 4px; }
.wpcf7 .wpcf7-response-output { margin: 18px 0 0 !important; padding: 12px 16px !important; border-radius: 8px; font-size: 14px; }
.wpcf7 .wpcf7-spinner { vertical-align: middle; margin-left: 12px; }

/* Insights list */
.ci-body__in--wide { max-width: 1240px; }
.ci-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.ci-card { background: #fffaf2; border: 1px solid #e8dfd0; border-radius: 14px; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.ci-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15, 16, 14, .1); }
.ci-card__link { display: flex; flex-direction: column; height: 100%; color: inherit !important; text-decoration: none; }
.ci-card__img { aspect-ratio: 16 / 10; background: radial-gradient(90% 90% at 30% 20%, #0a4a36, var(--green) 60%, #031a17); position: relative; overflow: hidden; }
.ci-card__img:empty::after { content: ""; position: absolute; inset: 30% -10% auto -10%; height: 60%; border-top: 3px solid var(--lime); border-radius: 50%; opacity: .6; }
.ci-card__img img { width: 100%; height: 100%; object-fit: cover; }
.ci-card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.ci-card__meta { font: 400 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #6d6a64; margin-bottom: 14px; }
.ci-card__t { font: 600 26px/1.15 var(--serif) !important; margin: 0 0 12px !important; }
.ci-card__ex { font-size: 15px; line-height: 1.6; color: #4a4843; margin-bottom: 20px; }
.ci-card__more { margin-top: auto; font: 600 14px/1 var(--sans); color: #1f7a45; }
.ci-card:hover .ci-card__more i { margin-left: 4px; }

/* Shared CTA band */
.ci-cta { background: radial-gradient(80% 120% at 50% 0%, #0a4a36, var(--green) 55%, var(--deep)); padding: 110px 0 120px; }
.ci-cta .h2 { color: #fff; }
.ci-cta .eyebrow { font-size: 16px; }
.ci-cta .btn { margin-top: 40px; }

@media (max-width: 980px) {
  .ci-hero { padding: 70px 0 64px; }
  .ci-body { padding: 56px 18px 80px; }
  .ci-body__in { font-size: 16px; }
  .ci-row--2, .ci-row--3, .ci-row--4, .ci-row--5, .ci-inner--contact .ci-row--2 { grid-template-columns: 1fr; gap: 28px; }
  .ci-row--4, .ci-row--5 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ci-hr { margin: 48px auto; }
  .ci-posts { grid-template-columns: 1fr; }
  .ci-cta { padding: 70px 0 80px; }
}
@media (max-width: 560px) {
  .ci-row--4, .ci-row--5 { grid-template-columns: 1fr; }
}
