/* ============================================================
   ROOT VARIABLES
============================================================ */
:root {
  --primary:          #7C4DFF;
  --primary-dark:     #6236E8;
  --primary-light:    #A78BFA;
  --bg:               #FFFFFF;
  --bg-soft:          #F8F7FC;
  --bg-section:       #F3F0FF;
  --text-dark:        #17152B;
  --text-medium:      #5E5B75;
  --text-light:       #8D89A6;
  --border:           #E8E5F5;
  --shadow-sm:        0 4px 12px rgba(124, 77, 255, 0.08);
  --shadow-md:        0 8px 24px rgba(124, 77, 255, 0.12);
  --shadow-lg:        0 15px 40px rgba(124, 77, 255, 0.15);
  --gradient-primary: linear-gradient(135deg, #7C4DFF 0%, #8B5CF6 50%, #A855F7 100%);
}

/* ============================================================
   FOOTER
============================================================ */
.ws-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

/* ── Brand ── */
.ws-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  margin-bottom: 14px;
}

.ws-footer-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.ws-footer-brand:hover .ws-footer-logo {
  transform: rotate(4deg) scale(1.06);
}

.ws-footer-brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.1;
  letter-spacing: -0.3px;
}

.ws-footer-brand-name span { color: var(--primary); }

.ws-footer-brand-sub {
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 500;
  margin-top: 2px;
}

/* ── Description ── */
.ws-footer-desc {
  font-size: 0.9rem;
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 320px;
}

/* ── Headings ── */
.ws-footer-heading {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: var(--text-dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  position: relative;
}

.ws-footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.col-lg-2:hover .ws-footer-heading::after,
.col-lg-4:hover .ws-footer-heading::after,
.col-sm-4:hover .ws-footer-heading::after {
  width: 40px;
}

/* ── Links ── */
.ws-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ws-footer-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-medium);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.ws-footer-links a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

/* ── Newsletter ── */
.ws-newsletter-desc {
  font-size: 0.86rem;
  color: var(--text-light);
  margin-bottom: 14px;
  line-height: 1.6;
}

.ws-newsletter-field {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  padding: 4px 4px 4px 14px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ws-newsletter-field:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.1);
}

.ws-newsletter-field input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.88rem;
  color: var(--text-dark);
  outline: none;
  padding: 8px 0;
  min-width: 0;
}

.ws-newsletter-field input::placeholder {
  color: var(--text-light);
}

.ws-newsletter-field button {
  padding: 9px 18px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ws-newsletter-field button:hover {
  opacity: 0.9;
  transform: translateX(2px);
}

/* ── Bottom Bar ── */
.ws-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--text-light);
}

.ws-made-in {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ws-made-in i {
  color: #f43f5e;
  font-size: 0.78rem;
  animation: wsHeart 1.6s ease infinite;
}

@keyframes wsHeart {
  0%, 100% { transform: scale(1); }
  30%       { transform: scale(1.3); }
  60%       { transform: scale(1); }
  80%       { transform: scale(1.15); }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .ws-footer-desc { max-width: 100%; }

  .ws-newsletter-field {
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    gap: 8px;
  }

  .ws-newsletter-field input { padding: 8px 4px; }

  .ws-newsletter-field button {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
  }

  .ws-footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
