/* ── Kiagostar Modern Footer ── */
.kf-footer {
  --kf-navy: #1e3a5f;
  --kf-navy-dark: #0f172a;
  --kf-navy-mid: #152a45;
  --kf-navy-soft: #2c5282;
  --kf-green: #8DC63F;
  --kf-green-dark: #6BA22E;
  --kf-text: #e2e8f0;
  --kf-muted: #94a3b8;
  --kf-border: rgba(255, 255, 255, 0.08);
  --kf-glass: rgba(255, 255, 255, 0.04);
  --kf-radius: 16px;
  --kf-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: block;
  width: 100%;
  clear: both;
  float: none;
  box-sizing: border-box;
  background: linear-gradient(180deg, var(--kf-navy-dark) 0%, #0a1018 100%);
  color: var(--kf-text);
  overflow: hidden;
  font-family: vazir-fd-wl, Tahoma, sans-serif;
}

.kf-footer *,
.kf-footer *::before,
.kf-footer *::after {
  font-family: inherit;
}

.kf-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.kf-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(30, 58, 95, 0.5) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 85% 20%, rgba(141, 198, 63, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.kf-footer-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 70%);
  pointer-events: none;
}

.kf-footer-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Trust strip ── */
.kf-trust-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--kf-border);
}

@media (min-width: 576px) {
  .kf-trust-strip { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 992px) {
  .kf-trust-strip { grid-template-columns: repeat(6, 1fr); gap: 1rem; }
}

.kf-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 0.85rem 0.5rem;
  border-radius: 12px;
  background: var(--kf-glass);
  border: 1px solid var(--kf-border);
  transition: var(--kf-transition);
}

.kf-trust-item:hover {
  background: rgba(141, 198, 63, 0.08);
  border-color: rgba(141, 198, 63, 0.25);
  transform: translateY(-3px);
}

.kf-trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.8), rgba(44, 82, 130, 0.6));
  border: 1px solid rgba(141, 198, 63, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kf-green);
}

.kf-trust-icon .kf-icon {
  width: 20px;
  height: 20px;
}

.kf-trust-item span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--kf-text);
  line-height: 1.4;
}

/* ── Newsletter CTA band ── */
.kf-newsletter-band {
  margin: 2rem 0;
  padding: 2rem;
  border-radius: var(--kf-radius);
  background: linear-gradient(135deg, var(--kf-navy-mid) 0%, var(--kf-navy) 50%, rgba(44, 82, 130, 0.9) 100%);
  border: 1px solid rgba(141, 198, 63, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .kf-newsletter-band {
    grid-template-columns: 1fr 1.2fr;
    padding: 2.25rem 2.5rem;
  }
}

.kf-newsletter-text h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.5rem;
}

.kf-newsletter-text p {
  font-size: 0.9rem;
  color: var(--kf-muted);
  margin: 0;
  line-height: 1.7;
}

.kf-newsletter-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(141, 198, 63, 0.15);
  border: 1px solid rgba(141, 198, 63, 0.3);
  color: var(--kf-green);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

.kf-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

@media (min-width: 576px) {
  .kf-newsletter-form {
    flex-direction: row;
  }
}

.kf-newsletter-form input {
  flex: 1;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--kf-border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: var(--kf-transition);
}

.kf-newsletter-form input::placeholder { color: var(--kf-muted); }

.kf-newsletter-form input:focus {
  border-color: var(--kf-green);
  box-shadow: 0 0 0 3px rgba(141, 198, 63, 0.15);
}

.kf-newsletter-form button {
  background: linear-gradient(135deg, var(--kf-green) 0%, var(--kf-green-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.85rem 1.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--kf-transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.kf-newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(141, 198, 63, 0.35);
}

/* ── Quick actions ── */
.kf-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .kf-quick-actions { grid-template-columns: repeat(4, 1fr); }
}

.kf-quick-action {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 12px;
  background: var(--kf-glass);
  border: 1px solid var(--kf-border);
  text-decoration: none;
  color: var(--kf-text);
  transition: var(--kf-transition);
}

.kf-quick-action:hover {
  background: rgba(141, 198, 63, 0.1);
  border-color: rgba(141, 198, 63, 0.3);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

.kf-quick-action-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--kf-navy), var(--kf-navy-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kf-green);
  flex-shrink: 0;
}

.kf-quick-action-icon .kf-icon {
  width: 18px;
  height: 18px;
}

.kf-quick-action strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
}

.kf-quick-action small {
  display: block;
  font-size: 0.72rem;
  color: var(--kf-muted);
  margin-top: 0.1rem;
}

/* ── Main columns ── */
.kf-footer-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 1rem 0 2.5rem;
}

@media (min-width: 576px) {
  .kf-footer-main { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
  .kf-footer-main { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}

.kf-footer-brand img,
.kf-footer-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1rem;
}

.kf-footer-logo-link {
  display: inline-block;
  text-decoration: none;
}

.kf-footer-brand p,
.kf-footer-about {
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--kf-muted);
  margin: 0 0 1.25rem;
  text-align: justify;
  text-justify: inter-word;
}

.kf-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.kf-social-link {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--kf-glass);
  border: 1px solid var(--kf-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kf-muted);
  font-size: 1.1rem;
  text-decoration: none;
  transition: var(--kf-transition);
}

.kf-social-link:hover {
  background: linear-gradient(135deg, var(--kf-green), var(--kf-green-dark));
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px) scale(1.05);
  text-decoration: none;
}

.kf-social-link--whatsapp:hover {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.kf-col-title {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(141, 198, 63, 0.35);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.kf-col-title .kf-icon {
  color: var(--kf-green);
  width: 18px;
  height: 18px;
}

.kf-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.kf-link-list li { margin-bottom: 0.55rem; }

.kf-link-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--kf-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--kf-transition);
}

.kf-link-list a::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--kf-green);
  opacity: 0;
  transform: translateX(4px);
  transition: var(--kf-transition);
}

.kf-link-list a:hover {
  color: var(--kf-green);
  padding-right: 4px;
  text-decoration: none;
}

.kf-link-list a:hover::before { opacity: 1; transform: translateX(0); }

/* Contact cards */
.kf-contact-cards {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.kf-contact-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: 12px;
  background: var(--kf-glass);
  border: 1px solid var(--kf-border);
  text-decoration: none;
  color: inherit;
  transition: var(--kf-transition);
}

.kf-contact-card:hover {
  border-color: rgba(141, 198, 63, 0.3);
  background: rgba(141, 198, 63, 0.06);
  text-decoration: none;
  color: inherit;
}

.kf-contact-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(141, 198, 63, 0.2), rgba(30, 58, 95, 0.5));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kf-green);
  flex-shrink: 0;
}

.kf-contact-card strong {
  display: block;
  font-size: 0.75rem;
  color: var(--kf-muted);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.kf-contact-card span {
  font-size: 0.85rem;
  color: var(--kf-text);
  line-height: 1.5;
}

.kf-hours-box {
  margin-top: 0.75rem;
  padding: 0.85rem;
  border-radius: 12px;
  background: rgba(141, 198, 63, 0.08);
  border: 1px dashed rgba(141, 198, 63, 0.25);
  font-size: 0.8rem;
  color: var(--kf-muted);
  line-height: 1.7;
}

.kf-hours-box i { color: var(--kf-green); margin-left: 0.35rem; }

/* ── Licenses ── */
.kf-licenses {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.kf-license-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--kf-border);
  transition: var(--kf-transition);
  min-width: 80px;
  min-height: 80px;
}

.kf-license-badge:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.kf-license-badge img {
  max-width: 72px;
  max-height: 72px;
  object-fit: contain;
}

/* ── Bottom bar ── */
.kf-footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 0 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .kf-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: right;
  }
}

.kf-copyright {
  font-size: 0.85rem;
  color: var(--kf-muted);
  margin: 0;
}

.kf-copyright a {
  color: var(--kf-green);
  font-weight: 700;
  text-decoration: none;
}

.kf-copyright a:hover { text-decoration: underline; }

.kf-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.kf-bottom-links a {
  font-size: 0.8rem;
  color: var(--kf-muted);
  text-decoration: none;
  transition: var(--kf-transition);
}

.kf-bottom-links a:hover { color: var(--kf-green); }

/* removed dev credit */
#kf-back-to-top {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 9999;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--kf-navy), var(--kf-navy-soft));
  border: 1px solid rgba(141, 198, 63, 0.35);
  color: var(--kf-green);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: var(--kf-transition);
  text-decoration: none;
}

#kf-back-to-top:hover {
  background: linear-gradient(135deg, var(--kf-green), var(--kf-green-dark));
  color: #fff;
  transform: translateY(-4px);
  text-decoration: none;
}

#kf-back-to-top .kf-icon {
  width: 22px;
  height: 22px;
}

#kf-back-to-top.is-visible { display: flex; }
