/* ==============================
   Footer (Blue Theme) — footer.css
   ============================== */

/* Base footer element (generic) */
footer {
  padding: 40px 0;
  color: #64748b;
}

/* ===== Brand & Theme Variables ===== */
:root {
  --brand: #0ea5e9;         /* primary blue (matches Contact Us) */
  --brand-2: #22d3ee;       /* accent cyan */
  --footer-bg: #0b1220;     /* deep navy background */
  --footer-text: #e6f3ff;   /* soft blue-white */
  --footer-muted: #c8dbef;  /* muted text for bottom row */
  --footer-border: rgba(255,255,255,0.12);
}

/* === Footer Variant: .site-footer === */
.site-footer {
  background:
    radial-gradient(70rem 50rem at 10% 0%, rgba(14,165,233,0.10), transparent 60%),
    radial-gradient(70rem 50rem at 90% 10%, rgba(34,211,238,0.10), transparent 60%),
    var(--footer-bg);
  color: var(--footer-text);
  border-radius: 32px 32px 0 0;
  padding: 48px 0 20px;
  position: relative;
  overflow: hidden;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.back-to-top,
.whatsapp-btn {
  position: fixed;
  right: 20px;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  text-decoration: none;
  cursor: pointer;
  z-index: 1000;
}

.back-to-top {
  bottom: 20px;
  background: #333;
}

.whatsapp-btn {
  bottom: 80px; /* sits above the back-to-top */
  background: #25D366; /* WhatsApp green */
}

.whatsapp-btn img {
  width: 24px;
  height: 24px;
}

.site-footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--brand-2);
  color: #111;
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
  display: none; /* hidden by default */
  box-shadow: 0 6px 16px rgba(0,0,0,.2);
  transition: opacity .3s ease, transform .3s ease;
  z-index: 999;
}
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0,0,0,.3);
}

.site-footer .top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 30px;
}

/* Headings */
.site-footer h3 {
  margin: 0 0 14px;
  font-size: 28px;
  color: #fff;
  line-height: 1.3;
  background: linear-gradient(45deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-footer h4 {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--brand-2);
  position: relative;
  padding-bottom: 8px;
}

.site-footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--brand);
  border-radius: 2px;
}

/* Pitch text */
.site-footer .pitch p {
  color: rgba(230,243,255,0.85);
  max-width: 28ch;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Lists */
.site-footer .links ul,
.site-footer .contact ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer .links li { margin: 10px 0; }

/* Links */
.site-footer .links a {
  color: var(--footer-text);
  opacity: .95;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  padding-left: 20px;
  position: relative;
}

.site-footer .links a::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--brand);
  transition: transform 0.3s ease;
}

.site-footer .links a:hover {
  color: var(--brand-2);
  transform: translateX(5px);
}

.site-footer .links a:hover::before {
  transform: translateX(3px);
}

/* Contact */
.site-footer .contact li {
  margin: 15px 0;
  line-height: 1.6;
}

.site-footer .contact strong {
  color: var(--brand-2);
  display: block;
  margin-bottom: 5px;
}

.site-footer .contact a {
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.3s ease;
}
/* Compact two-column contact layout */
.site-footer .contact ul.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;               /* tight rows, comfy columns */
  margin: 0;
  padding: 0;
}

.site-footer .contact ul.contact-grid li {
  margin: 0;                   /* override larger li margins */
  line-height: 1.5;
}

.site-footer .contact ul.contact-grid li span {
  display: block;              /* single line instead of multiple <br> */
  opacity: 0.95;
}

/* Make the phone/email row span full width */
.site-footer .contact ul.contact-grid li.contact-cta {
  grid-column: 1 / -1;
  margin-top: 4px;
}

/* Even tighter when using .compact */
.site-footer.compact .contact ul.contact-grid {
  gap: 6px 16px;
}
.site-footer.compact .contact ul.contact-grid li { line-height: 1.45; }

/* Stack to one column on small screens */
@media (max-width: 640px) {
  .site-footer .contact ul.contact-grid {
    grid-template-columns: 1fr;
    gap: 8px 0;
  }
}

.site-footer .contact a:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* CTA Button */
.site-footer .cta { margin-top: 20px; }

.site-footer .cta .btn {
  background: linear-gradient(to right, var(--brand), var(--brand-2));
  color: #111827;
  border-radius: 24px;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.site-footer .cta .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Newsletter */
.footer-newsletter {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  margin: 26px 0;
  text-align: center;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-newsletter .label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--brand-2);
  font-size: 1.1rem;
}

.footer-newsletter .formbar {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border-radius: 50px;
  overflow: hidden;
  background: #fff;
}

.footer-newsletter input {
  flex: 1;
  padding: 12px 20px;
  border: none;
  outline: none;
  font-size: 1rem;
  background: transparent;
}

.footer-newsletter button {
  background: linear-gradient(to right, var(--brand), var(--brand-2));
  color: #111827;
  border: none;
  padding: 12px 24px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.footer-newsletter button:hover { filter: brightness(1.02); }

#footer-subscribe-status {
  display: block;
  margin-top: 10px;
  font-size: 0.9rem;
  min-height: 1.2rem;
  color: var(--brand-2);
}

/* Bottom Row */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--footer-muted);
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--footer-border);
  font-size: 0.9rem;
}

/* Social */
.social {
  display: flex;
  gap: 10px;
}

.social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-2);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--brand), var(--brand-2));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.social a:hover::before { opacity: 1; }

.social a:hover {
  color: #111827;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* A11y utility */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .site-footer .top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-newsletter .formbar {
    flex-direction: column;
    border-radius: 12px;
  }
  .footer-newsletter input,
  .footer-newsletter button {
    width: 100%;
    border-radius: 0;
    text-align: center;
  }
  .footer-newsletter input { border-bottom: 1px solid #ddd; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .site-footer h3 { font-size: 24px; }
}

@media (max-width: 480px) {
  .site-footer {
    border-radius: 20px 20px 0 0;
    padding: 30px 0 15px;
  }
  .site-footer h3 { font-size: 20px; }
  .footer-newsletter { padding: 15px; }
  .footer-newsletter .label { flex-direction: column; gap: 5px; }
}
