/* ============================================
   Footer
   ============================================ */

.footer {
  background: linear-gradient(to bottom, rgba(255, 153, 51, 0.08) 0%, rgba(255, 255, 255, 0.02) 40%, rgba(19, 136, 8, 0.08) 100%), var(--color-bg-dark);
  position: relative;
  color: rgba(255, 255, 255, 0.8);
  padding-top: var(--space-16);
  border-top: 4px solid;
  border-image: linear-gradient(to right, #ff9933 0%, #ffffff 50%, #138808 100%) 1;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  max-width: 800px;
  height: 100%;
  background-image: url('../images/mark_icon.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.05;
  filter: grayscale(100%) brightness(120%);
  pointer-events: none;
  z-index: 0;
}

.footer__top,
.footer__newsletter,
.footer__trust,
.footer__bottom {
  position: relative;
  z-index: 1;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.footer a:hover {
  color: var(--color-secondary);
}

/* ---- Footer Newsletter ---- */
.footer__newsletter {
  /* Hidden for now as requested */
  display: none;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ---- Footer Top ---- */
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---- Footer About ---- */
.footer__about {
  max-width: 320px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.footer__logo-img-wrapper {
  position: relative;
  display: inline-flex;
  border-radius: 50%;
}

.footer__logo-img-wrapper::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 153, 51, 0.25) 0deg 8deg,
    transparent 8deg 15deg,
    rgba(255, 255, 255, 0.2) 15deg 23deg,
    transparent 23deg 30deg,
    rgba(19, 136, 8, 0.25) 30deg 38deg,
    transparent 38deg 45deg
  );
  border-radius: 50%;
  animation: spin-rays 20s linear infinite;
  z-index: 0;
  -webkit-mask-image: radial-gradient(circle, black 35%, transparent 70%);
  mask-image: radial-gradient(circle, black 35%, transparent 70%);
}

@keyframes spin-rays {
  100% { transform: rotate(360deg); }
}

.footer__logo img {
  height: 80px;
  width: 80px;
  border-radius: var(--radius-full);
  border: 2px solid rgba(255, 255, 255, 0.2);
  padding: 4px;
  transition: transform var(--transition-medium), border-color var(--transition-fast);
  position: relative;
  z-index: 1;
  background: var(--color-bg-dark);
}

.footer__logo img:hover {
  transform: scale(1.05) rotate(5deg);
  border-color: rgba(255, 153, 51, 0.6);
}

.footer__logo-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: var(--fw-bold);
  color: white;
  line-height: 1.2;
}

.footer__about p {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-relaxed);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-5);
}

.footer__socials {
  display: flex;
  gap: var(--space-3);
}

.footer__social-link {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  border: 2px solid rgba(255, 255, 255, 0.15);
  color: white;
  transition: all var(--transition-medium);
  box-shadow: var(--shadow-sm);
}

.footer__social-link:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Colorful Social Icons using aria-label */
.footer__social-link[aria-label="Facebook"] {
  background: #1877F2;
  color: white;
}
.footer__social-link[aria-label="Twitter"] {
  background: #1DA1F2;
  color: white;
}
.footer__social-link[aria-label="Instagram"] {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
}
.footer__social-link[aria-label="YouTube"] {
  background: #FF0000;
  color: white;
}
/* Make the play triangle match the background so it looks cut out */
.footer__social-link[aria-label="YouTube"] svg polygon {
  fill: #FF0000;
}

.footer__social-link svg {
  width: 18px;
  height: 18px;
}

/* ---- Footer Columns ---- */
.footer__heading {
  font-family: var(--font-heading);
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  color: white;
  margin-bottom: var(--space-5);
  position: relative;
}

.footer__heading::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--gradient-primary);
  margin-top: var(--space-3);
  border-radius: var(--radius-full);
}

.footer__links li {
  margin-bottom: var(--space-3);
}

.footer__links a {
  font-size: var(--fs-body-sm);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.footer__links a::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 1px;
  background: var(--color-secondary);
  transition: width var(--transition-fast);
}

.footer__links a:hover::before {
  width: 12px;
}

/* ---- Footer Contact ---- */
.footer__contact-item {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-size: var(--fs-body-sm);
}

.footer__contact-icon {
  width: 20px;
  height: 20px;
  color: var(--color-secondary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---- Footer Newsletter ---- */
.footer__newsletter {
  padding: var(--space-10) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.footer__newsletter h3 {
  font-size: var(--fs-h4);
  color: white;
  margin-bottom: var(--space-2);
}

.footer__newsletter p {
  font-size: var(--fs-body-sm);
  color: rgba(255, 255, 255, 0.6);
}

.footer__newsletter .newsletter-form input[type="email"] {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: white;
}

.footer__newsletter .newsletter-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.footer__newsletter .newsletter-form input[type="email"]:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.15);
}

/* ---- Footer Trust ---- */
.footer__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
  padding: var(--space-8) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-body-sm);
  color: rgba(255, 255, 255, 0.5);
}

.footer__trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-secondary);
}

/* ---- Footer Bottom ---- */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) 0;
  font-size: var(--fs-caption);
  color: rgba(255, 255, 255, 0.4);
}

.footer__bottom a {
  color: rgba(255, 255, 255, 0.5);
}

.footer__bottom a:hover {
  color: var(--color-secondary);
}

.footer__bottom-links {
  display: flex;
  gap: var(--space-4);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

@media (max-width: 768px) {
  .footer__top {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    text-align: center;
  }

  .footer__about {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer__heading::after {
    margin-left: auto;
    margin-right: auto;
  }

  .footer__logo {
    justify-content: center;
  }

  .footer__contact-item {
    justify-content: center;
  }

  .footer__links a {
    justify-content: center;
  }

  .footer__newsletter-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__newsletter .newsletter-form {
    width: 100%;
    max-width: 100%;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }
}
