/* ==========================================================================
   SOCEC-BA — components.css
   Buttons, icon tiles, tags, chips, CTA band, modal, lightbox, toast, 404.
   ========================================================================== */

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border: 0; border-radius: var(--radius-sm); background: var(--grad-btn); color: #fff; font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 8px 20px rgba(31, 122, 20, .28); transition: transform .2s, box-shadow .2s, filter .2s; text-align: center; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 12px 26px rgba(31, 122, 20, .36); }
.btn--sm { padding: 11px 20px; font-size: 13px; }
.btn--ghost { background: transparent; border: 1.5px solid rgba(255, 255, 255, .75); box-shadow: none; }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); box-shadow: none; }
.btn--outline { background: transparent; color: var(--link); border: 1.5px solid var(--link); box-shadow: none; }
.btn--outline:hover { background: color-mix(in srgb, var(--link) 10%, transparent); box-shadow: none; }
.btn--light { background: #fff; color: var(--navy); box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }
.btn.is-loading { pointer-events: none; opacity: .75; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--link); font-size: 15px; background: none; border: 0; padding: 0; }
.link-arrow svg { transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* Icon tiles (duotone SVG icons from assets/icons) */
.ico { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, #eaf3ff, #e3f2d6); border: 1px solid rgba(10, 89, 180, .14); flex: none; }
.ico--lg { width: 68px; height: 68px; border-radius: 20px; }
.ico--xl { width: 84px; height: 84px; border-radius: 24px; }
.ico--round { border-radius: 50%; position: relative; }
.ico--round::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px dashed var(--lime); }

.tag { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green-text); }

/* Chips (filters) */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 32px; }
.chip { padding: 9px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14.5px; color: var(--muted); transition: all .2s; }
.chip:hover { border-color: var(--blue); color: var(--link); }
.chip.is-active { background: var(--grad-btn); color: #fff; border-color: transparent; }

/* Split section (text + image) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--rev .txt { order: 2; }
.split h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 500; }
.txt { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.txt p { color: var(--muted); font-size: 17px; line-height: 1.75; }
.txt p strong { color: var(--fg); }
.media { position: relative; min-width: 0; }
.media::before { content: ""; position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(135deg, #1f7a14, #4f9d22); right: -26px; bottom: -26px; z-index: 0; }
.split--rev .media::before { right: auto; left: -26px; }
.media img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow-lg); background: var(--alt); }
.quote { font-family: var(--font-display); font-size: clamp(23px, 2.8vw, 23px) !important; line-height: 1.3 !important; font-weight: 500; color: var(--fg) !important; border-left: 5px solid var(--lime); padding-left: 24px; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: 22px; padding: 52px 48px; color: #fff; background: linear-gradient(120deg, #07216d, #0a59b4); display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band::before { content: ""; position: absolute; width: 340px; aspect-ratio: 1; border-radius: 50%; right: -80px; top: -120px; background: radial-gradient(circle, rgba(123, 184, 42, .65), transparent 70%); }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 500; max-width: 560px; }
.cta-band p { color: rgba(255, 255, 255, .9); margin-top: 10px; max-width: 520px; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 16px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(4, 12, 40, .68); backdrop-filter: blur(3px); animation: fade .2s ease; }
.modal__panel { position: relative; width: min(720px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); color: var(--fg); border-radius: 22px; box-shadow: var(--shadow-lg); animation: pop .25s ease; }
.modal__close { position: absolute; right: 14px; top: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(7, 33, 109, .85); color: #fff; display: grid; place-items: center; }
.modal__close:hover { background: var(--navy); }
.modal__body { padding: 0; }
.nm__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 25%; background: var(--alt); }
.nm__meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 24px 32px 0; color: var(--muted); font-size: 14px; }
.nm h3, .pm h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 600; padding: 10px 32px 0; }
.nm__text { padding: 14px 32px 0; display: grid; gap: 14px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.nm__text strong { color: var(--fg); }
.nm__actions { display: flex; gap: 12px; flex-wrap: wrap; padding: 26px 32px 32px; }
.pm { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 40px 0 0; }
.pm > .ico, .pm > .tag, .pm__lead, .pm > p { margin-inline: 32px; }
.pm > .ico { margin-bottom: 10px; }
.pm__lead { font-size: 19px; font-weight: 500; color: var(--fg); padding: 8px 0 6px; }
.pm > p:not(.pm__lead):not(.tag) { color: var(--muted); }
.pm .nm__actions { padding-top: 20px; }

.lightbox { position: fixed; inset: 0; z-index: 160; background: rgba(4, 12, 40, .9); display: grid; place-items: center; padding: 24px; }
.lightbox img { max-height: 92vh; max-width: min(92vw, 780px); width: auto; border-radius: 12px; box-shadow: var(--shadow-lg); background: #fff; }

.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 170; background: var(--navy); color: #fff; padding: 14px 22px; border-radius: 12px; box-shadow: var(--shadow-lg); max-width: min(92vw, 520px); font-size: 15px; animation: pop .25s ease; }
.toast.is-error { background: #a82323; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
body.is-locked { overflow: hidden; }

/* 404 */
.notfound { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding-block: 40px; }
.notfound h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 600; }
.notfound p { color: var(--muted); max-width: 460px; }

@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 44px; }
  .split--rev .txt { order: 0; }
  .media { margin-bottom: 26px; }
}
@media (max-width: 720px) {
  .cta-band { padding: 36px 24px; }
  .nm__meta, .nm h3, .nm__text, .nm__actions { padding-left: 20px; padding-right: 20px; }
  .pm > .ico, .pm > .tag, .pm__lead, .pm > p { margin-inline: 20px; }
  .pm h3 { padding-inline: 20px; }
  .btn { padding: 13px 20px; }
  .media::before { right: -8px; bottom: -12px; }
  .split--rev .media::before { left: -8px; }
}
