/* =============================================================================
 * Vitalum Footer Widget — self-contained.
 * Every rule scoped under .vfooter so no theme can leak in.
 * Fully responsive out of the box (mobile-first grid).
 * ============================================================================= */

.vfooter {
  /* CSS custom properties set by the Elementor Style tab */
  --vfooter-accent: #1ebf95;
  --vfooter-text:   rgba(199,211,221,0.65);
  --vfooter-muted:  rgba(199,211,221,0.45);
  --vfooter-border: rgba(255,255,255,0.10);

  position: relative;              /* stacking context for tint + shape overlay */
  overflow: hidden;                /* clip the shape to footer bounds (matches .ov-h) */
  display: block;
  width: 100%;
  background-color: #000;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--vfooter-text);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.875rem;
  line-height: 1.65;
  box-sizing: border-box;
}

/* Optional colour tint layered above the bg image */
.vfooter-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: none;                 /* only shown if Style → Background Tint has a colour */
}

/* Decorative shape overlay (equivalent of .nk-ovm.shape-s-sm.shape-center-bottom) */
.vfooter-shape {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: 50% 100%;
  background-size: auto;
}

/* Content sits above the decorative layers */
.vfooter-inner { position: relative; z-index: 3; }
.vfooter *,
.vfooter *::before,
.vfooter *::after { box-sizing: border-box; }

.vfooter-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 12px 0;               /* pt-5 pb-0 + Bootstrap container gutter */
}

/* -------- Grid layout — mirrors the Bootstrap column ratios in index.html -------- */
.vfooter-grid {
  display: grid;
  gap: 48px;                          /* gy-5 = 3rem */
  align-items: start;
  grid-template-columns: 1fr;         /* mobile default (<768) */
}

/* md 768–991: brand + compliance sit side-by-side, offices takes a full row */
@media (min-width: 768px) {
  .vfooter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vfooter-col--brand      { grid-column: 1 / 2; }
  .vfooter-col--compliance { grid-column: 2 / 3; }
  .vfooter-col--offices    { grid-column: 1 / -1; }
}

/* lg 992–1199: brand + offices in row 1, compliance wraps to row 2 (matches Bootstrap 4+5+4=13) */
@media (min-width: 992px) {
  .vfooter-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 5fr);
  }
  .vfooter-col--brand      { grid-column: 1 / 2; grid-row: 1; }
  .vfooter-col--offices    { grid-column: 2 / 3; grid-row: 1; }
  .vfooter-col--compliance { grid-column: 1 / -1; grid-row: 2; }
}

/* xl ≥1200: full 3-column layout 4 : 5 : 2 (matches col-xl-4 / col-xl-5 / col-xl-2) */
@media (min-width: 1200px) {
  .vfooter-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 2fr);
  }
  .vfooter-col--brand      { grid-column: 1 / 2; grid-row: 1; }
  .vfooter-col--offices    { grid-column: 2 / 3; grid-row: 1; }
  .vfooter-col--compliance { grid-column: 3 / 4; grid-row: 1; }
}

.vfooter-col { min-width: 0; }

/* -------- Brand column -------- */
.vfooter-logo {
  display: inline-block;
  margin-bottom: 16px;
  line-height: 0;
  opacity: 0.95;
  transition: opacity 0.3s;
}
.vfooter-logo:hover { opacity: 1; }
.vfooter-logo img {
  display: block;
  width: 210px;
  max-width: 100%;
  height: auto;
}

.vfooter-tagline {
  margin: 0 0 16px;
  color: var(--vfooter-text);
  font-weight: 300;
  line-height: 1.75;
  font-size: 0.875rem;
}

/* -------- Social icons -------- */
.vfooter-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.vfooter-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--vfooter-text);
  font-size: 1rem;
  text-decoration: none;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.vfooter-social-link:hover,
.vfooter-social-link:focus {
  border-color: var(--vfooter-accent);
  color: var(--vfooter-accent);
  background: rgba(30,191,149,0.08);
  outline: none;
}
.vfooter-social-link svg {
  width: 16px; height: 16px; fill: currentColor;
}

/* -------- Headings -------- */
.vfooter-heading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vfooter-accent);
  margin: 0 0 16px;
  line-height: 1.4;
}

/* -------- Offices -------- */
.vfooter-offices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 480px) {
  .vfooter-offices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.vfooter-office { min-width: 0; }

.vfooter-country {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
  font-weight: 600;
  color: var(--vfooter-text);
  font-size: 0.8125rem;
}
.vfooter-flag {
  width: 20px;
  height: auto;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
.vfooter-address {
  margin: 0;
  color: var(--vfooter-text);
  font-size: 0.8125rem;
  font-weight: 300;
  line-height: 1.55;
}

/* -------- Compliance -------- */
.vfooter-compliance {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 16px;
}
@media (min-width: 480px) {
  .vfooter-compliance {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}
.vfooter-compliance li {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--vfooter-text);
}
.vfooter-compliance strong { font-weight: 600; }

/* -------- Divider + bottom bar --------
   Mirrors: <hr class="border-secondary opacity-25 mt-5 mb-3">
   and the .footer-meta flex row: flex-column flex-lg-row justify-content-between align-items-lg-center gap-3 pb-4
*/
.vfooter-divider {
  border: 0;
  border-top: 1px solid var(--vfooter-border);   /* border-secondary + opacity-25 baked in */
  margin: 48px 0 16px;                           /* mt-5 mb-3 */
  opacity: 1;
}

.vfooter-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;                       /* align-items-start on mobile */
  justify-content: space-between;
  gap: 16px;                                     /* gap-3 = 1rem */
  padding-bottom: 24px;                          /* pb-4 = 1.5rem */
}
@media (min-width: 992px) {                      /* flex-lg-row align-items-lg-center */
  .vfooter-bottom {
    flex-direction: row;
    align-items: center;
  }
}

.vfooter-copy {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--vfooter-muted);
}

.vfooter-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;                        /* .list-inline-item spacing */
  justify-content: flex-start;      /* align-items-start on mobile */
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 992px) { .vfooter-bottom-links { justify-content: flex-end; } }

.vfooter-bottom-links a {
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--vfooter-muted);
  text-decoration: none;
  transition: color 0.3s;
}
.vfooter-bottom-links a:hover,
.vfooter-bottom-links a:focus {
  color: var(--vfooter-accent);
  outline: none;
}
