.footer-brand-card {
  background-color: #FFFFFF;
  border-radius: var(--radius-md, 12px);
  padding: 26px 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-dark, #1E293B);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-brand-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.footer-card-header {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #E2E8F0;
}

.footer-card-logo {
  height: 48px;
  width: auto;
  max-width: none;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

.footer-brand-card .footer-company-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 12px;
  line-height: 1.35;
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8125rem;
  color: #475569;
  line-height: 1.5;
}

.footer-contact-icon {
  width: 16px;
  height: 16px;
  min-width: 16px;
  stroke: var(--primary-green, #9fd032);
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-contact-item a {
  color: #0F172A;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact-item a:hover {
  color: var(--primary-green, #9fd032);
  text-decoration: underline;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-bounce);
  text-decoration: none;
}

.social-icon:hover {
  background-color: var(--primary-green);
  color: #FFFFFF;
  transform: translateY(-3px) scale(1.08);
}

.social-icon svg {
  width: 16px;
  height: 16px;
}

/* ============================================================
   FOOTER LAYOUT  (contact card | Quick Links | Our Services | Connect)
   ============================================================ */
.site-footer {
  position: relative;
  background:
    radial-gradient(900px 340px at 100% 0%, rgba(159, 208, 50, 0.08), transparent 70%),
    radial-gradient(700px 320px at 0% 100%, rgba(159, 208, 50, 0.05), transparent 70%),
    var(--navy-footer);
  color: #FFFFFF;
  padding-top: 40px;
  padding-bottom:20px;
  border-top: 0;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--primary-green, #9fd032) 50%, transparent 100%);
  opacity: 0.85;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 48px 48px;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  width: 100%;
  max-width: 380px;
}

/* If the hidden newsletter block is ever restored, it sits on its own full-width row */
.footer-main .footer-slogan {
  grid-column: 1 / -1;
  align-items: flex-start;
  text-align: left;
  max-width: 420px;
}

.footer-col-title {
  position: relative;
  margin: 6px 0 24px;
  padding-bottom: 14px;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FFFFFF;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 3px;
  border-radius: 3px;
  background: var(--primary-green, #9fd032);
}

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

.footer-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 2px;
  margin-right: 0;
  border-radius: 2px;
  background: var(--accent-green, #9fd032);
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), margin-right 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-link:hover,
.footer-link.active {
  color: var(--accent-green, #9fd032);
}
.footer-link:hover::before,
.footer-link.active::before {
  width: 12px;
  margin-right: 8px;
}

.footer-tagline {
  margin: 0 0 22px;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1.4rem;
  line-height: 1.15;
  color: #A3E635;
}
.footer-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-pill, 9999px);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s ease;
}

.footer-btn-primary {
  background: var(--primary-green, #9fd032);
  color: #0F172A;
  border: 1.5px solid var(--primary-green, #9fd032);
}

.footer-btn-primary:hover {
  background: var(--primary-green-hover, #8bb728);
  border-color: var(--primary-green-hover, #8bb728);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(159, 208, 50, 0.28);
}

.footer-btn-primary svg {
  transition: transform 0.25s ease;
}

.footer-btn-primary:hover svg {
  transform: translateX(3px);
}

.footer-btn-ghost {
  background: rgba(159, 208, 50, 0.1);
  color: #A3E635;
  border: 1.5px solid rgba(159, 208, 50, 0.4);
}

.footer-btn-ghost:hover {
  background: rgba(159, 208, 50, 0.2);
  border-color: #A3E635;
  transform: translateY(-2px);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Bottom bar: copyright (nudged in from the left) | visitors centre | links (nudged in from the right) */
.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-top: 26px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom-links {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 58px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: var(--accent-green);
}

.footer-copy {
  justify-self: start;
  text-align: left;
  padding-left: 48px;
}

@media (max-width: 1100px) {
  .footer-main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 44px 40px;
  }
  .footer-brand {
    grid-column: 1 / -1;
    max-width: 480px;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding-top: 56px;
  }
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 28px;
    padding-bottom: 40px;
  }
  .footer-connect {
    grid-column: 1 / -1;
  }
  .footer-bottom {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 16px;
    text-align: center;
  }
  .footer-bottom .footer-visitor-counter {
    order: -1;
  }
  .footer-bottom-links,
  .footer-copy {
    justify-self: center;
    justify-content: center;
    text-align: center;
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  .footer-brand-card {
    padding: 22px 20px;
  }
  .footer-main {
    gap: 32px 20px;
  }
  .footer-link {
    font-size: 0.875rem;
  }
}

.footer-slogan {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  max-width: 340px;
}

.footer-slogan .handwritten-quote-light {
  font-size: 2.1rem;
  color: #A3E635;
  line-height: 1.25;
}

.footer-newsletter-box {
  margin-top: 14px;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 18px;
  border-radius: var(--radius-md, 12px);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.newsletter-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}

.newsletter-desc {
  font-size: 0.78125rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
  line-height: 1.4;
}

.newsletter-form {
  width: 100%;
}

.newsletter-input-group {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border-radius: var(--radius-pill, 9999px);
  padding: 4px 4px 4px 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-input-group:focus-within {
  box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.4);
}

.newsletter-input {
  border: none;
  outline: none;
  background: transparent;
  color: #0F172A;
  font-size: 0.8125rem;
  font-family: inherit;
  width: 100%;
  padding-right: 8px;
}

.newsletter-input::placeholder {
  color: #94A3B8;
}

.newsletter-btn {
  background: var(--primary-green, #9fd032);
  color: #0F172A;
  border: none;
  border-radius: var(--radius-pill, 9999px);
  padding: 8px 16px;
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.newsletter-btn:hover {
  background: var(--primary-green-hover, #8bb728);
  color: #0F172A;
  transform: translateY(-1px);
}

.newsletter-feedback {
  margin-top: 10px;
  font-size: 0.78125rem;
  color: #A3E635;
  font-weight: 600;
  text-align: right;
}

.footer-visitor-counter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}

.footer-visitor-counter:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(163, 230, 53, 0.4);
}

.visitor-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #A3E635;
  box-shadow: 0 0 10px #A3E635;
  animation: pulse-live 1.8s infinite ease-in-out;
}

@keyframes pulse-live {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.visitor-counter-text {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.visitor-counter-number {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #A3E635;
  letter-spacing: 0.04em;
  font-family: monospace, var(--font-primary);
}

.footer-tagline-accent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.footer-tagline-accent::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background-color: var(--accent-green);
}

.back-to-top-btn,
#backToTopBtn {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-green, #9fd032);
  color: #0F172A !important;
  border: 1.5px solid var(--accent-green, #9fd032);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25), 0 0 0 2px rgba(159, 208, 50, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.85);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9990;
  outline: none;
}

.back-to-top-btn.visible,
#backToTopBtn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top-btn:hover,
#backToTopBtn:hover {
  background: var(--primary-green-hover, #85b025);
  border-color: #9fd032;
  box-shadow: 0 12px 32px rgba(159, 208, 50, 0.4), 0 0 0 4px rgba(159, 208, 50, 0.3);
  transform: translateY(-4px) scale(1.08);
  color: #0F172A !important;
}

.back-to-top-btn:active,
#backToTopBtn:active {
  transform: translateY(0) scale(0.95);
}

.back-to-top-btn svg,
#backToTopBtn svg {
  width: 22px;
  height: 22px;
  stroke: #FFFFFF;
  stroke-width: 2.5;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.back-to-top-btn:hover svg,
#backToTopBtn:hover svg {
  transform: translateY(-2px);
  stroke: #A3E635;
}

@media (max-width: 768px) {
  .back-to-top-btn,
  #backToTopBtn {
    bottom: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
  }
}