/* ============================================
   Sync Inn Digital — Footer
   Dark theme matching syncinndigital.com
   All colors via CSS variables from theme settings
   ============================================ */

/* ---------- Base ---------- */

.site-footer {
  position: relative;
  background: var(--sid-black, #000);
  color: rgba(255, 255, 255, 0.7);
  overflow: hidden;
  font-family: var(--sid-font-body, 'Nunito'), ui-sans-serif, system-ui, sans-serif;
  padding-bottom: 300px;
}

.site-footer *,
.site-footer *::before,
.site-footer *::after {
  box-sizing: border-box;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--sid-orange, #f97316);
}

/* ---------- Watermark (image) ---------- */

.footer-watermark {
  position: absolute;
  bottom: -20px;
  left: 0;
  width: 100%;
  text-align: center;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  z-index: 0;
  opacity: 0.5;
}

.footer-watermark-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  /* Image is already low opacity — no extra opacity added */
}

/* ---------- Inner ---------- */

.footer-inner {
  max-width: var(--sid-site-width);
  margin: 0 auto;
  padding: 100px 20px 40px;
  position: relative;
  z-index: 1;
}

/* ---------- Columns ---------- */

.footer-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .footer-columns {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .footer-columns {
    grid-template-columns: 1.1fr 1fr 0.8fr 0.9fr;
    gap: 48px;
  }
}

/* ---------- Column 1: Brand ---------- */

.footer-col-brand {
  max-width: 246px;
}

.footer-logo-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 18px;
}

.footer-logo-text {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  display: block;
  margin-bottom: 18px;
  font-family: var(--sid-font-heading, 'Poppins'), sans-serif;
}

.footer-desc {
  font-size: 18px;
  font-family: 'Nunito', var(--sid-font-body), sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 20px;
}

/* Socials — white icons, official brand bg on hover */
.footer-socials {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, color 0.2s ease;
}

.site-footer a.footer-social-icon {
  color: #fff;
}

.footer-social-icon:hover {
  color: #fff;
}

/* Official brand colors on hover */
.footer-social-icon.social-facebook:hover {
  background: #1877F2;
}

.footer-social-icon.social-instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.footer-social-icon.social-linkedin:hover {
  background: #0A66C2;
}

.footer-social-icon.social-youtube:hover {
  background: #FF0000;
}

.footer-social-icon.social-x:hover {
  background: #fff;
  color: #000;
}

/* Contact */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.footer-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-family: 'Nunito', var(--sid-font-body), sans-serif;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item svg {
  flex-shrink: 0;
  opacity: 0.8;
}

.footer-contact-item:hover {
  color: var(--sid-orange, #f97316);
}

.footer-headquartered {
  font-size: 18px;
  font-family: 'Nunito', var(--sid-font-body), sans-serif;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.footer-flag {
  height: 16px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  border-radius: 2px;
}

/* ---------- Link Columns (2 & 3) ---------- */

.footer-col-heading {
  font-size: 20px;
  font-weight: 600;
  font-family: 'Poppins', var(--sid-font-heading), sans-serif;
  color: #fff;
  margin: 0 0 20px;
}

.footer-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link-list li a {
  font-size: 16px;
  font-family: 'Nunito', var(--sid-font-body), sans-serif;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}

.footer-link-list li a:hover {
  color: var(--sid-orange, #f97316);
}

/* ---------- Column 4: CTA ---------- */

.footer-col-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Email input */
.footer-email-wrap {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  padding: 4px 4px 4px 18px;
  margin-bottom: 20px;
  width: 300px;
}

.footer-email-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-family: 'Nunito', var(--sid-font-body), sans-serif;
  padding: 8px 0;
  min-width: 0;
}

.footer-email-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Email button — gradient bg matching header CTA */
.footer-email-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0047D8 0%, #32CCFF 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.footer-email-btn::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #FFFF8F;
  border-radius: 50%;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  z-index: -1;
}

.footer-email-btn:hover {
  color: #000;
}

.footer-email-btn:hover::before {
  transform: translateY(0);
}

.footer-email-btn svg {
  transition: transform 0.3s ease;
}

.footer-email-btn:hover svg {
  transform: rotate(45deg);
}

/* Trust */
.footer-trust {
 display: flex;
    gap: 16px;
    margin-bottom: 20px;
    align-items: center;
}

.footer-trust-left {
  flex-shrink: 0;
}

.footer-trust-right {
  display: flex;
  flex-direction: column;
  gap: 0px;
  flex: 1;
}

.footer-trust-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-trust-avatars {
  display: flex;
}

.footer-avatar {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid var(--sid-white, #fff);
  margin-right: -8px;
  overflow: hidden;
}

.footer-avatar:last-child {
  margin-right: 0;
}

.footer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.footer-trust-text {
  font-size: 12px;
  font-family: 'Poppins', var(--sid-font-heading), sans-serif;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

.footer-trust-text strong {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

.footer-trust-stars {
  color: #fbbf24;
  font-size: 16px;
  letter-spacing: 2px;
}

.footer-stars {
  display: flex;
  align-items: center;
  gap: 1px;
}

.footer-star-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.footer-star-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.footer-stars-img {
  height: 20px;
  width: auto;
  display: block;
}

/* CTA Buttons — styles from global .sid-btn--plain; only spacing here */
.footer-col-cta .sid-btn--plain {
  margin-bottom: 10px;
}

/* ---------- Bottom Bar ---------- */

.footer-bottom {
  position: relative;
  z-index: 1;
  padding: 20px;
  max-width: var(--sid-site-width);
  margin: 0 auto;
}

.footer-divider {
  max-width: var(--sid-site-width);
  margin: 0 auto;
  padding: 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 30px;
}

.footer-bottom-inner {
  max-width: var(--sid-site-width);
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  position: relative;
}

.footer-bottom-bg-img {
  height: auto;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 24px;
    padding: 20px 0;
  }

  .footer-bottom-bg-img {
    margin-right: 16px;
    flex-shrink: 0;
  }

  .footer-bottom-left {
    flex: 1;
  }

  .footer-bottom-right {
    margin-left: auto;
  }
}

.footer-copyright {
  font-size: 16px;
  font-family: 'Nunito', var(--sid-font-body), sans-serif;
  font-weight: 400;
  color: #fff;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-bottom-link {
  font-size: 16px;
  font-family: 'Nunito', var(--sid-font-body), sans-serif;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-link:hover {
  color: var(--sid-orange, #f97316);
}

.footer-bottom-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 10px;
}

/* ── Mobile — < 767px ───────────────────────────────────────── */

@media (max-width: 767px) {

  /* Reduce bottom padding */
  .site-footer {
    padding-bottom: 60px;
  }

  /* Columns: brand full-width → cta full-width → two link cols in a row */
  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-col-brand {
    order: 1;
    grid-column: 1 / -1;
    max-width: 100%;
  }

  .footer-col-cta {
    order: 2;
    grid-column: 1 / -1;
  }

  .footer-col-links {
    order: 3;
  }

  .footer-logo-img {
    max-width: 58%;
  }

  /* Bottom bar: right (policy links) before left (copyright), both centred */
  .footer-bottom-right {
    order: 1;
    justify-content: center;
  }

  .footer-bottom-left {
    order: 2;
    text-align: center;
  }
}
