/* ============================================================
   ANSOFTIO Footer Styles — asf-footer.css
   ============================================================ */

.asf-footer {
  background: var(--asf-navy);
  color: rgba(255,255,255,0.75);
  padding-top: 72px;
}

.asf-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Brand column */
.asf-footer-brand {}
.asf-footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 16px;
}
.asf-footer-logo-text {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--asf-white);
  letter-spacing: -0.02em;
}
.asf-footer-logo-text span { color: var(--asf-cyan); }
.asf-footer-tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
  line-height: 1.6;
}
.asf-footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.asf-footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.asf-footer-social-link:hover {
  background: var(--asf-blue);
  color: var(--asf-white);
}
.asf-footer-contact-list {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.asf-footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}
.asf-footer-contact-item a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.asf-footer-contact-item a:hover { color: var(--asf-cyan); }

/* Link columns */
.asf-footer-col-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--asf-white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.asf-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.asf-footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.asf-footer-links a:hover { color: var(--asf-cyan); }

/* Bottom bar */
.asf-footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.asf-footer-copy {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
}
.asf-footer-legal-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.asf-footer-legal-links a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.asf-footer-legal-links a:hover { color: var(--asf-cyan); }

/* Responsive */
@media (max-width: 1024px) {
  .asf-footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .asf-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .asf-footer-bottom { flex-direction: column; text-align: center; }
}


/* ============================================================
   Cookie Consent Banner
   ============================================================ */
.asf-cookie-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9000;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--asf-border);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(7,27,61,0.18);
  padding: 18px 22px;
  max-width: 980px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 320ms cubic-bezier(0.16,1,0.3,1), transform 320ms cubic-bezier(0.16,1,0.3,1);
}
.asf-cookie-consent.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.asf-cookie-consent-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.asf-cookie-consent-text {
  flex: 1 1 380px;
  min-width: 0;
}
.asf-cookie-consent-text strong {
  display: inline-block;
  font-size: 0.9375rem;
  margin-bottom: 4px;
}
.asf-cookie-consent-text p {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--asf-muted);
  margin: 0;
}
.asf-cookie-consent-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.asf-cookie-link {
  font-size: 0.8125rem;
  color: var(--asf-blue);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (max-width: 600px) {
  .asf-cookie-consent {
    left: 8px; right: 8px; bottom: 8px;
    border-radius: 14px;
    padding: 14px 16px;
  }
  .asf-cookie-consent-actions {
    width: 100%;
    justify-content: stretch;
  }
  .asf-cookie-consent-actions .asf-btn {
    flex: 1;
    justify-content: center;
  }
  .asf-cookie-link { width: 100%; text-align: center; }
}

/* ============================================================
   Back to Top Button
   ============================================================ */
.asf-back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 8500;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--asf-grad-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(37,99,235,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px) scale(0.8);
  transition: opacity 260ms cubic-bezier(0.16,1,0.3,1), transform 260ms cubic-bezier(0.16,1,0.3,1), box-shadow 260ms;
}
.asf-back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.asf-back-to-top:hover {
  box-shadow: 0 16px 44px rgba(37,99,235,0.5);
  transform: translateY(-2px) scale(1.04);
}
.asf-back-to-top:focus-visible {
  outline: 3px solid var(--asf-cyan);
  outline-offset: 3px;
}
@media (max-width: 600px) {
  .asf-back-to-top {
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
  }
}


/* ============================================================
   Cookie Preferences Panel
   ============================================================ */
.asf-cookie-prefs {
  border-top: 1px solid var(--asf-border);
  margin-top: 14px;
  padding-top: 14px;
}
.asf-cookie-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #F1F5F9;
}
.asf-cookie-pref-row:last-of-type { border-bottom: none; }
.asf-cookie-pref-row strong {
  font-size: 0.8125rem;
  color: var(--asf-navy);
}

/* Toggle switch */
.asf-cookie-toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
  cursor: pointer;
}
.asf-cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.asf-cookie-toggle span {
  position: absolute;
  inset: 0;
  background: #CBD5E1;
  border-radius: 999px;
  transition: background 200ms;
}
.asf-cookie-toggle span::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 200ms;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.asf-cookie-toggle input:checked + span {
  background: linear-gradient(135deg, #2563EB, #06B6D4);
}
.asf-cookie-toggle input:checked + span::before {
  transform: translateX(18px);
}
.asf-cookie-toggle input:focus-visible + span {
  outline: 3px solid var(--asf-cyan);
  outline-offset: 2px;
}
