/* ==========================================================================
   FOOTER
   Elementor mapping: a Footer template in Theme Builder. Each column is a
   nested Container; the newsletter row is a Form widget.
   ========================================================================== */

.site-footer {
  background-color: var(--hm-ink-900);
  color: rgba(251, 249, 247, 0.66);
  font-size: var(--text-body-sm);
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-color);
}

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


/* --------------------------------------------------------------------------
   1. PRE-FOOTER — export enquiry strip
   Sits directly above the footer so every page ends on a conversion prompt.
   -------------------------------------------------------------------------- */

.footer-cta {
  border-block-end: var(--border-hairline) solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(70% 120% at 85% 0%, rgba(126, 34, 51, 0.5), transparent 62%),
    var(--hm-ink-900);
}

.footer-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-10);
  padding-block: var(--space-16);
}

.footer-cta__title {
  font-size: var(--text-h2);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-display);
  color: #fff;
  max-width: 20ch;
}

.footer-cta__text {
  margin-block-start: var(--space-3);
  color: rgba(251, 249, 247, 0.7);
  max-width: 52ch;
}

.footer-cta__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); flex: none; }

@media (max-width: 899px) {
  .footer-cta__inner { flex-direction: column; align-items: flex-start; gap: var(--space-8); }
}


/* --------------------------------------------------------------------------
   2. MAIN FOOTER GRID
   -------------------------------------------------------------------------- */

.footer-main { padding-block: var(--space-20) var(--space-12); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: var(--space-12) var(--space-10);
}

@media (max-width: 1023px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 559px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-10); }
}


/* --- Brand column -------------------------------------------------------- */

.footer-brand { display: flex; flex-direction: column; gap: var(--space-5); max-width: 42ch; }

.footer-brand__logo img {
  height: 72px;
  width: auto;
  object-fit: contain;
  background: none;
}

.footer-brand__text { color: rgba(251, 249, 247, 0.6); line-height: var(--lh-body); max-width: none; }

.footer-socials { display: flex; gap: var(--space-2); }

.footer-socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: var(--border-hairline) solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  color: rgba(251, 249, 247, 0.7);
  transition: var(--transition-base);
}

.footer-socials a:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.footer-socials svg { width: 17px; height: 17px; }


/* --- Link columns -------------------------------------------------------- */

.footer-col { display: flex; flex-direction: column; gap: var(--space-4); }

.footer-col__title {
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  color: var(--hm-brass-200);
}

.footer-links { display: flex; flex-direction: column; gap: var(--space-3); }

.footer-links a {
  display: inline-block;
  position: relative;
  width: fit-content;
}

/* Hairline that draws in on hover — keeps the list calm at rest */
.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-base) var(--ease-out);
}

.footer-links a:hover::after { transform: scaleX(1); }


/* --- Contact column ------------------------------------------------------ */

.footer-contact { display: flex; flex-direction: column; gap: var(--space-5); }

.footer-office { display: flex; flex-direction: column; gap: var(--space-1); }

.footer-office__label {
  font-size: var(--text-label);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  color: rgba(251, 249, 247, 0.42);
}

.footer-office__text {
  color: rgba(251, 249, 247, 0.72);
  line-height: var(--lh-body);
  max-width: none;
  font-style: normal;
}

.footer-contact__row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer-contact__row svg {
  width: 16px;
  height: 16px;
  flex: none;
  opacity: 0.55;
}


/* --------------------------------------------------------------------------
   3. FOOTER STRIPS — certifications + payment/membership marks
   -------------------------------------------------------------------------- */

.footer-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-6);
  padding-block: var(--space-8);
  border-block-start: var(--border-hairline) solid rgba(255, 255, 255, 0.1);
}

.footer-strip__label {
  font-size: var(--text-label);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  color: rgba(251, 249, 247, 0.42);
  flex: none;
}

.footer-strip__marks {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-8);
}

.footer-strip__marks img {
  height: 40px;
  width: auto;
  object-fit: contain;
  background: none;
  filter: grayscale(1) brightness(2.2);
  opacity: 0.6;
  transition: var(--transition-base);
}

.footer-strip__marks img:hover { opacity: 1; filter: none; }


/* --------------------------------------------------------------------------
   4. BOTTOM BAR
   -------------------------------------------------------------------------- */

.footer-bottom {
  border-block-start: var(--border-hairline) solid rgba(255, 255, 255, 0.1);
}

.footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-8);
  padding-block: var(--space-6);
  font-size: var(--text-caption);
  color: rgba(251, 249, 247, 0.48);
}

.footer-legal { display: flex; flex-wrap: wrap; gap: var(--space-5); }

@media (max-width: 639px) {
  .footer-bottom__inner { flex-direction: column; align-items: flex-start; }
}


/* --------------------------------------------------------------------------
   5. BACK TO TOP
   -------------------------------------------------------------------------- */

.to-top {
  position: fixed;
  right: clamp(1rem, 2vw, 1.75rem);
  /* WhatsApp now lives bottom-left, so back-to-top takes the normal
     bottom-right corner with no stacking offset. */
  bottom: clamp(1rem, 2vw, 1.75rem);
  z-index: var(--z-float);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background-color: var(--color-surface);
  color: var(--color-text);
  border: var(--border-hairline) solid var(--color-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition-base);
}

.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

.to-top:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.to-top .icon { transform: rotate(-90deg); }
