/*
 * Site footer (resources/views/partials/footer.blade.php). Loaded on every page.
 * Uses its own .sf- classes so the legacy .main-footer theme rules do not apply.
 */
.site-footer {
  --sf-bg: #0e2552;
  --sf-bg-2: #0a1c40;
  --sf-panel: rgba(255, 255, 255, .06);
  --sf-line: rgba(255, 255, 255, .12);
  --sf-text: #c6d3ea;
  --sf-muted: #93a6c8;
  --sf-white: #ffffff;
  --sf-green: #2fbf5a;
  --sf-red: #d9232b;
  --sf-yellow: #ffe94f;
  --sf-gradient: linear-gradient(90deg, #1f5fbf 0%, #1a8a8c 45%, #2fbf5a 80%, #d9232b 80%, #d9232b 86%, #2fbf5a 86%);

  position: relative;
  background:
    radial-gradient(700px 300px at 100% 0%, rgba(47, 191, 90, .12), transparent 60%),
    radial-gradient(600px 300px at 0% 100%, rgba(31, 95, 191, .18), transparent 60%),
    linear-gradient(180deg, var(--sf-bg) 0%, var(--sf-bg-2) 100%);
  color: var(--sf-text);
  font-family: "Ubuntu", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
.site-footer::before { content: ""; display: block; height: 6px; background: var(--sf-gradient); }
.site-footer *, .site-footer *::before, .site-footer *::after { box-sizing: border-box; }
.site-footer :where(h2, p, ul) { margin: 0; padding: 0; }
.site-footer :where(li) { list-style: none; }
.site-footer a { color: inherit; text-decoration: none; transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease; }
.site-footer :focus-visible { outline: 3px solid var(--sf-yellow); outline-offset: 3px; border-radius: 6px; }

.sf-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Newsletter band ---------- */
.sf-newsletter {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px 40px; align-items: center;
  margin: 48px 0 0; padding: 28px 32px; border-radius: 18px;
  background: var(--sf-panel); border: 1px solid var(--sf-line);
  scroll-margin-top: 110px;
}
.sf-newsletter__intro { display: flex; gap: 18px; align-items: center; }
.sf-newsletter__icon {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, #1f5fbf, #2fbf5a); color: #fff; font-size: 22px;
}
.sf-newsletter__title { color: var(--sf-white); font-size: 21px; font-weight: 700; line-height: 1.3; margin-bottom: 4px; }
.sf-newsletter__intro p { color: var(--sf-text); font-size: 15px; }
.sf-newsletter__action { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }

.sf-form { width: 100%; }
.sf-form__row {
  display: flex; width: 100%; background: #fff; border-radius: 12px; padding: 5px; gap: 5px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
.sf-form__row:focus-within { box-shadow: 0 0 0 3px rgba(255, 233, 79, .65), 0 8px 24px rgba(0, 0, 0, .18); }
.sf-form input[type="email"] {
  flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; padding: 0 14px;
  font-size: 15px; color: #14213d; font-family: inherit; outline: none;
}
.sf-form input[type="email"]::placeholder { color: #7a869c; }
.sf-form button {
  display: inline-flex; align-items: center; gap: .5rem; height: 46px; padding: 0 22px; border: 0; border-radius: 9px; cursor: pointer;
  background: var(--sf-red); color: #fff; font-weight: 700; font-size: 15px; font-family: inherit; white-space: nowrap; transition: background-color .18s ease;
}
.sf-form button:hover { background: #b81c23; }
.sf-form__captcha { margin-top: 12px; }

.sf-btn {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; padding: 0 24px; border-radius: 12px; cursor: pointer;
  background: var(--sf-red); color: #fff; border: 0; font-weight: 700; font-size: 15px; font-family: inherit;
  box-shadow: 0 8px 20px rgba(217, 35, 43, .3); transition: background-color .18s ease, transform .18s ease;
}
.sf-btn:hover { background: #b81c23; transform: translateY(-1px); }

.sf-alert { width: 100%; display: flex; gap: .6rem; align-items: flex-start; padding: 12px 14px; border-radius: 10px; font-size: 14.5px; }
.sf-alert i { margin-top: .2rem; }
.sf-alert--success { background: rgba(47, 191, 90, .15); border: 1px solid rgba(47, 191, 90, .45); color: #c9f5d6; }
.sf-alert--error { background: rgba(217, 35, 43, .15); border: 1px solid rgba(255, 107, 112, .5); color: #ffd3d5; }

/* ---------- Columns ---------- */
.sf-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1.1fr); gap: 40px 48px; padding: 52px 0 44px; }

.sf-brand__link { display: inline-flex; align-items: center; gap: 14px; }
.sf-brand__logo { flex-shrink: 0; width: 72px; height: 72px; border-radius: 16px; background: #fff; display: grid; place-items: center; padding: 6px; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }
.sf-brand__logo img { width: 100%; height: 100%; object-fit: contain; }
.sf-brand__name { color: var(--sf-white); font-weight: 700; font-size: 16px; line-height: 1.25; letter-spacing: .02em; }
.sf-brand__name small { display: block; font-weight: 400; font-size: 12.5px; color: var(--sf-text); letter-spacing: .04em; margin-top: 3px; }
.sf-brand__text { margin-top: 18px; color: var(--sf-text); max-width: 320px; }

.sf-col__title {
  color: var(--sf-white); font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 18px; padding-bottom: 12px; position: relative;
}
.sf-col__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; border-radius: 2px; background: var(--sf-green); }

.sf-links { display: grid; gap: 2px; }
.sf-links--two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.sf-links a { display: inline-flex; align-items: center; gap: .5rem; padding: 6px 0; color: var(--sf-text); font-size: 15px; line-height: 1.4; }
.sf-links--two a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sf-muted); flex-shrink: 0; transition: background-color .18s ease, transform .18s ease; }
.sf-links a:hover, .sf-links a[aria-current="page"] { color: var(--sf-white); }
.sf-links--two a:hover::before, .sf-links--two a[aria-current="page"]::before { background: var(--sf-green); transform: scale(1.3); }
.sf-links--external a { align-items: baseline; }
.sf-links--external a i { font-size: 10.5px; color: var(--sf-muted); opacity: 0; transform: translateX(-4px); transition: opacity .18s ease, transform .18s ease; }
.sf-links--external a:hover i, .sf-links--external a:focus-visible i { opacity: 1; transform: none; }

/* ---------- Bottom bar ---------- */
.sf-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 20px 0 26px; border-top: 1px solid var(--sf-line); }
.sf-social { display: flex; align-items: center; gap: 14px; color: var(--sf-muted); font-size: 14px; }
.sf-social ul { display: flex; gap: 10px; }
.sf-social a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 15px;
  background: var(--sf-panel); border: 1px solid var(--sf-line); color: var(--sf-white);
}
.sf-social a:hover { background: var(--sf-white); color: var(--sf-bg); transform: translateY(-2px); }
.sf-credit { color: var(--sf-muted); font-size: 14px; }
.sf-credit:hover { color: var(--sf-yellow); }

@media (prefers-reduced-motion: reduce) {
  .site-footer *, .site-footer *::before { transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .sf-newsletter { grid-template-columns: minmax(0, 1fr); }
  .sf-newsletter__action { align-items: stretch; }
  .sf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-brand { grid-column: 1 / -1; }
  .sf-brand__text { max-width: 560px; }
}
@media (max-width: 600px) {
  .sf-wrap { padding: 0 16px; }
  .sf-newsletter { margin-top: 36px; padding: 22px 18px; }
  .sf-newsletter__intro { align-items: flex-start; }
  .sf-newsletter__icon { width: 46px; height: 46px; font-size: 18px; border-radius: 12px; }
  .sf-form__row { flex-direction: column; }
  .sf-form button { justify-content: center; }
  .sf-btn { justify-content: center; }
  .sf-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; padding: 40px 0 32px; }
  .sf-bottom { flex-direction: column; align-items: flex-start; }
}
