/* ============================================================
   FOOTER.CSS — Premium Footer with Wave
   ============================================================ */
.footer {
  background: var(--clr-bg-2);
  position: relative;
  overflow: hidden;
}

/* ---- Wave at top ---- */
.footer-wave {
  display: block;
  line-height: 0;
  margin-bottom: -2px;
  color: var(--clr-bg);
}
.footer-wave svg {
  width: 100%;
  height: clamp(50px, 6vw, 100px);
  display: block;
}

/* ---- Footer Inner ---- */
.footer-inner {
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 5vw, 2.5rem) clamp(1.5rem, 3vw, 2rem);
  max-width: var(--container);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* ---- Footer Grid ---- */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: clamp(2rem, 4vw, 4rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* ---- Brand ---- */
.footer-logo {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: -0.04em;
  display: flex;
  align-items: baseline;
  gap: 0;
  margin-bottom: 1rem;
}
.footer-tagline {
  font-size: var(--fs-sm);
  color: var(--clr-text-3);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 320px;
}

/* Social Icons */
.footer-socials {
  display: flex;
  gap: 0.75rem;
}
.footer-social {
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  background: var(--clr-bg-3);
  border: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-3);
  transition: all var(--dur-base) var(--ease);
  text-decoration: none;
}
.footer-social:hover {
  background: var(--grad-primary);
  color: #fff;
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,102,255,0.30);
}

/* ---- Footer Columns ---- */
.footer-col-title {
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  list-style: none;
}
.footer-links a {
  font-size: var(--fs-sm);
  color: var(--clr-text-3);
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-links a:hover {
  color: var(--clr-accent);
  transform: translateX(4px);
}
.footer-links a::before {
  content: '→';
  font-size: 0.7rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: all var(--dur-fast) var(--ease);
}
.footer-links a:hover::before { opacity: 1; transform: translateX(0); }

/* Newsletter */
.footer-newsletter-desc {
  font-size: var(--fs-sm);
  color: var(--clr-text-3);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  background: var(--clr-bg);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--r-full);
  padding: 0.3rem 0.3rem 0.3rem 1rem;
  transition: border-color var(--dur-fast) var(--ease);
}
.newsletter-form:focus-within { border-color: var(--clr-accent); }
.newsletter-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: var(--fs-sm);
  color: var(--clr-text);
  min-width: 0;
}
.newsletter-input::placeholder { color: var(--clr-text-3); }
.newsletter-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--grad-primary);
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-fast) var(--ease);
  flex-shrink: 0;
}
.newsletter-btn:hover { transform: scale(1.1); box-shadow: 0 4px 16px rgba(0,102,255,0.35); }
.newsletter-note {
  font-size: 0.7rem;
  color: var(--clr-accent-3);
  margin-top: 0.5rem;
  padding-left: 0.5rem;
}

/* ---- Footer Bottom ---- */
.footer-bottom {
  border-top: 1px solid var(--clr-border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy {
  font-size: var(--fs-xs);
  color: var(--clr-text-3);
}
.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}
.footer-bottom-links a {
  font-size: var(--fs-xs);
  color: var(--clr-text-3);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
.footer-bottom-links a:hover { color: var(--clr-accent); }

/* ---- Glow decoration ---- */
.footer-inner::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,102,255,0.05) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   RESPONSIVE FOOTER
   ============================================================ */
@media (max-width: 1023px) {
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; }
  .footer-socials { justify-content: flex-start; }
}

/* ============================================================
   CTA BANNER (used on index)
   ============================================================ */
.cta-banner {
  background: var(--grad-primary);
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 5vw, 2.5rem);
  text-align: center;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1' fill='white' opacity='0.07'/%3E%3C/svg%3E");
}
.cta-banner-inner { position: relative; z-index: 1; max-width: 680px; margin-inline: auto; }
.cta-banner h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.cta-banner p { color: rgba(255,255,255,0.80); margin-bottom: 2rem; font-size: var(--fs-md); }
.cta-banner-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-white {
  background: #fff;
  color: var(--clr-accent);
  padding: 0.9rem 2rem;
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: var(--fs-base);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--dur-base) var(--ease);
}
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.20); }
.btn-white-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.50);
  padding: 0.9rem 2rem;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: var(--fs-base);
  text-decoration: none;
  transition: all var(--dur-base) var(--ease);
}
.btn-white-ghost:hover { background: rgba(255,255,255,0.15); border-color: #fff; }
