/* Site-wide additions on top of Divi's CSS. Keep this small. */

/* Blog: post cards in a responsive grid (Divi used a JS masonry library for this). */
.sa-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px; }
.sa-post-grid .et_pb_post { margin: 0; padding: 19px; border: 1px solid #d8d8d8; background: #fff; }
.sa-post-grid .et_pb_image_container { margin: -19px -19px 19px; }
.sa-post-grid .et_pb_image_container img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.sa-post-grid .entry-title { font-size: 22px; line-height: 1.25; padding-bottom: 8px; }
.sa-post-grid .entry-title a { color: inherit; }
.sa-post-grid .post-meta { font-size: 14px; color: #666; padding-bottom: 8px; }
.et_pb_bg_layout_dark .sa-blog-intro { margin-top: 12px; max-width: 640px; color: #333 !important; font-size: 18px; }

/* Blog post body (Markdown): tables and code that WordPress blocks used to style. */
.et_pb_post_content table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; }
.et_pb_post_content th, .et_pb_post_content td { border: 1px solid #ddd; padding: 10px 12px; text-align: left; vertical-align: top; }
.et_pb_post_content th { background: #f3e2d9; font-weight: 600; }
.et_pb_post_content img { max-width: 100%; height: auto; }

/* ---------- Forms (replace WPForms) ---------- */
.sa-visually-hidden, .sa-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sa-form { font-size: 15px; line-height: 1.5; text-align: left; }
.sa-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.sa-form__row--3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 20px; }
@media (max-width: 767px) { .sa-form__row--3 { grid-template-columns: 1fr; } }
.sa-field { margin-bottom: 20px; }
.sa-field label { display: block; margin-bottom: 8px; font-weight: 500; }
.sa-field input, .sa-field textarea { display: block; width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; /* 16px stops iOS zooming in */ padding: 12px 14px; border-radius: 0; -webkit-appearance: none; appearance: none; }
.sa-field textarea { resize: vertical; min-height: 110px; }
.sa-field__help { margin: 8px 0 0; padding: 0; font-size: 14px; opacity: .85; }
.sa-field__error { margin: 8px 0 0; padding: 0; font-size: 14px; font-weight: 600; }
.sa-field__error::before { content: "\26A0\FE0E  "; }
.sa-opt { font-weight: 400; opacity: .8; }
.sa-req { color: inherit; }
.sa-count { display: block; margin-top: 4px; font-weight: 600; }
.sa-form__status { margin: 0 0 16px; padding: 12px 14px; font-weight: 600; }
.sa-form__nav { display: flex; gap: 12px; flex-wrap: wrap; }
.sa-btn { font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; padding: 12px 28px; border: 2px solid transparent; transition: background-color .15s, color .15s; }
.sa-btn:disabled { opacity: .7; cursor: progress; }
.sa-form input:focus-visible, .sa-form textarea:focus-visible, .sa-btn:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
.sa-form__success h3 { font-size: 26px; line-height: 1.25; padding-bottom: 10px; }
.sa-form__success:focus { outline: none; }
.sa-form .cf-turnstile { margin-bottom: 16px; }

/* Contact: white on the orange band, as before. */
.sa-form--contact { color: #fff; }
.sa-form--contact label { color: #fff; font-size: 15px; }
.sa-form--contact input, .sa-form--contact textarea { background: #fa6a1b; color: #fff; border: 0; border-bottom: 1px solid #fff; }
.sa-form--contact ::placeholder { color: #fff; opacity: .75; }
.sa-form--contact .sa-field--error input, .sa-form--contact .sa-field--error textarea { border-bottom: 3px solid #1d1d1b; }
.sa-form--contact .sa-field__error { color: #1d1d1b; }
.sa-form--contact .sa-form__status { background: #fff; color: #b3261e; }
.sa-btn--outline { background: transparent; color: #fff; border-color: #fff; }
.sa-btn--outline:hover { background: #fff; color: #ff6a1a; }
.sa-form--contact .sa-form__success h3, .sa-form--contact .sa-form__success p { color: #fff; }
.sa-form--contact .sa-form__success a { color: #fff; text-decoration: underline; }

/* Keyword generator: navy and lime, as before. */
.sa-form--ckg { color: #fff; max-width: 510px; }
.sa-form--ckg label { color: #fff; font-size: 16px; font-weight: 400; }
.sa-form--ckg .sa-req { color: #ff5c5c; }
.sa-form.sa-form--ckg .sa-field input { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 4px; padding: 16px 20px; }
.sa-form.sa-form--ckg input:focus-visible, .sa-form--ckg .sa-btn:focus-visible { outline: 3px solid #a8fe3b; outline-offset: 2px; }
.sa-form.sa-form--contact .sa-field input, .sa-form.sa-form--contact .sa-field textarea { color: #fff; }
.sa-form--ckg ::placeholder { color: rgba(255,255,255,.6); }
.sa-form--ckg .sa-field--error input { border-color: #ff8a8a; }
.sa-form--ckg .sa-field__error { color: #ffb4b4; }
.sa-form--ckg .sa-form__status { background: rgba(255,92,92,.15); color: #ffd2d2; border-left: 3px solid #ff5c5c; }
.sa-steps { margin: 0 0 6px; padding: 0; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.sa-progress { height: 4px; background: rgba(255,255,255,.15); border-radius: 2px; margin-bottom: 22px; overflow: hidden; }
.sa-progress span { display: block; height: 100%; background: #a8fe3b; transition: width .25s; }
.sa-btn--lime { background: #a8fe3b; color: #1d2a4d; border-radius: 4px; font-size: 18px; padding: 14px 40px; }
.sa-btn--lime:hover { background: #b6fe5c; }
.sa-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); border-radius: 4px; }
.sa-btn--ghost:hover { border-color: #fff; }
.sa-form--ckg .sa-form__success h3 { color: #a8fe3b; }
.sa-form--ckg .sa-form__success p, .sa-form--ckg .sa-form__success strong { color: #fff; }
.sa-form--ckg .sa-form__success a { color: #a8fe3b; }

/* Keyword generator: interim results (until the Pencil design is built). */
.sa-kw-summary { margin: 4px 0 18px; padding: 16px 18px; background: rgba(255,255,255,.08); border-left: 3px solid #a8fe3b; color: #fff; }
.sa-kw-summary p { color: #fff; margin: 0 0 8px; padding: 0; }
.sa-kw-total strong { color: #a8fe3b; font-size: 24px; }
.sa-kw-list { list-style: none; margin: 8px 0 0; padding: 0; }
.sa-kw-list li { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid rgba(255,255,255,.15); color: #fff; }
.sa-kw-summary a { color: #a8fe3b; }

/* Cookie banner (replaces the CookieYes plugin). Fixed, so it never changes page layout. */
.sa-cookie[hidden] { display: none !important; }
.sa-cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 99999;
  max-width: 720px; margin: 0 auto; padding: 16px 20px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  background: #333; color: #fff; font-family: "Work Sans", sans-serif; font-size: 14px; line-height: 1.5;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}
.sa-cookie p { flex: 1 1 320px; margin: 0; padding: 0; color: #fff; }
.sa-cookie a { color: #fff; text-decoration: underline; }
.sa-cookie__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sa-cookie__btn {
  font: inherit; font-weight: 600; cursor: pointer; padding: 8px 16px; border: 2px solid #ff6a1a;
  background: #ff6a1a; color: #fff;
}
.sa-cookie__btn--ghost { background: transparent; }
.sa-cookie__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
