/* ══════════════════════════════════════════
   NEW FOOTER (nf-*) — matches Figma design
   • nf-brand  : full-width logo banner (light bg + watermark)
   • nf-footer : dark charcoal with slanted red card left + nav right
   • nf-copy   : dark bar, red copyright text
══════════════════════════════════════════ */

/* ── Brand banner ── */
.nf-brand {
  position: relative;
  width: 100%;
  background-image: url('../../images/bg-img.png') !important;
  /* background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23f0f0f0' stroke-width='1'%3E%3Cpath d='M30 10a20 20 0 1 0 .001 40A20 20 0 0 0 30 10zm0 4a16 16 0 1 1-.001 32A16 16 0 0 1 30 14z'/%3E%3Ccircle cx='30' cy='30' r='5'/%3E%3Cpath d='M30 10v4M30 46v4M10 30h4M46 30h4M16.86 16.86l2.83 2.83M40.31 40.31l2.83 2.83M43.14 16.86l-2.83 2.83M19.69 40.31l-2.83 2.83'/%3E%3C/g%3E%3C/svg%3E"); */
  padding: 40px 0 35px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Subtle gear watermark reusing the same SVG pattern */
.nf-brand-bg {
  position: absolute;
  inset: 0;
  background-image: url('../../images/bg-img.png') !important;
  /* background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23f0f0f0' stroke-width='1'%3E%3Cpath d='M30 10a20 20 0 1 0 .001 40A20 20 0 0 0 30 10zm0 4a16 16 0 1 1-.001 32A16 16 0 0 1 30 14z'/%3E%3Ccircle cx='30' cy='30' r='5'/%3E%3Cpath d='M30 10v4M30 46v4M10 30h4M46 30h4M16.86 16.86l2.83 2.83M40.31 40.31l2.83 2.83M43.14 16.86l-2.83 2.83M19.69 40.31l-2.83 2.83'/%3E%3C/g%3E%3C/svg%3E"); */
  background-repeat: repeat;
  background-size: 60px 60px;
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}

.nf-brand-link {
  position: relative;
  z-index: 1;
  display: block;
  text-decoration: none;
  width: 100%;
  max-width: 950px;
  text-align: center;
}

.nf-brand-img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ── Main footer body ── */
.nf-footer {
  background: #3b3b3b;
  display: flex;
  align-items: stretch;
  min-height: 280px;
  position: relative;
}

/* ── Left: slanted red card ── */
.nf-card-wrap {
  flex: 0 0 380px;
  min-width: 380px;
  position: relative;
  filter: drop-shadow(4px 0 12px rgba(0, 0, 0, 0.4));
  margin-left: 5%;
}

.nf-card {
  width: 100%;
  height: 100%;
  min-height: 280px;
  clip-path: polygon(18% 0, 100% 0, 82% 100%, 0% 100%);
  background: linear-gradient(135deg, #d39292 0%, #b85f5f 30%, #902626 70%, #681515 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 50px;
  gap: 20px;
}

/* Halftone dot overlay */
.nf-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1px);
  background-size: 6px 6px;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(135deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 1) 100%);
  mask-image: linear-gradient(135deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 1) 100%);
}

.nf-card>* {
  position: relative;
  z-index: 1;
}

/* Caduceus icon — burned shadow effect */
.nf-card-icon {
  width: 80px;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  opacity: 0.65;
  filter: contrast(1.5) saturate(1.2);
  margin-bottom: 15px;
}

.nf-card-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #ffffff;
  line-height: 1.5;
  margin: 0;
  text-align: center;
  max-width: 250px;
  font-weight: 400;
  opacity: 0.95;
}

/* Social icons */
.nf-socials {
  display: flex;
  gap: 12px;
  margin-top: 5px;
}

.nf-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease;
  flex-shrink: 0;
}

.nf-social svg {
  width: 14px;
  height: 14px;
}

.nf-social:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* ── Right: nav columns ── */
.nf-nav {
  flex: 1;
  display: flex;
  gap: 8%;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 50px 40px 50px 60px;
}

.nf-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nf-col-heading {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #ffffff;
  margin: 0 0 24px 0;
  letter-spacing: 0.2px;
}

.nf-col-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nf-col-list li a {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #d0d0d0;
  text-decoration: none;
  transition: color 0.15s ease;
  line-height: 1.4;
  font-weight: 400;
}

.nf-col-list li a:hover {
  color: #ffffff;
}

/* ── Copyright bar ── */
/* .nf-copy {
  background: #fdfdfd;
  text-align: center;
  padding: 14px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #922222;
  letter-spacing: 0.3px;
  border-top: 1px solid #ebebeb;
} */

/* ── Dark mode (footer is already dark — minor adjustments only) ── */
body.dark .nf-brand {
  background: #111111;
}

body.dark .nf-brand-bg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23222' stroke-width='1'%3E%3Cpath d='M30 10a20 20 0 1 0 .001 40A20 20 0 0 0 30 10zm0 4a16 16 0 1 1-.001 32A16 16 0 0 1 30 14z'/%3E%3Ccircle cx='30' cy='30' r='5'/%3E%3Cpath d='M30 10v4M30 46v4M10 30h4M46 30h4M16.86 16.86l2.83 2.83M40.31 40.31l2.83 2.83M43.14 16.86l-2.83 2.83M19.69 40.31l-2.83 2.83'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 1;
}

body.dark .nf-copy {
  background: #111111;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .nf-footer {
    flex-direction: column;
  }

  .nf-card-wrap {
    flex: 0 0 auto;
    clip-path: none;
    /* Disable shadow wrap clipping on mobile if any */
    width: 100%;
    margin-left: 0;
  }

  .nf-card {
    min-height: 200px;
    padding: 40px 32px 56px 32px;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%);
    /* Slant bottom on mobile */
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
  }

  .nf-card-icon {
    width: 60px;
    margin-bottom: 0;
  }

  .nf-nav {
    padding: 36px 32px;
    gap: 32px;
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .nf-brand-img {
    padding: 0 20px;
  }

  .nf-nav {
    flex-direction: column;
    gap: 28px;
    padding: 28px 24px;
  }

  .nf-card {
    padding: 24px 24px 40px 24px;
  }
}

/* ══════════════════════════════════════════
   NEW FOOTER FIX — corrects layout to match Figma exactly
══════════════════════════════════════════ */

/* ── Brand banner ── ensure logo is full-width, centred, proper height */
.nf-brand {
  padding: 40px 80px 36px;
  background: #f7f7f7;
}

.nf-brand-img {
  max-width: 980px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
  padding: 0;
}

/* ── Footer body reset ── */
.nf-footer {
  background: #1a1a1a;
  display: grid;
  grid-template-columns: 360px 1fr;
  min-height: 300px;
}

/* ── Red card wrapper ── clipped diagonal right edge */
.nf-card-wrap {
  flex: none;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
  /* padding-right to compensate for the clip */
}

/* ── Red gradient card content ── */
.nf-card {
  width: 100%;
  height: 100%;
  min-height: 300px;
  background:
    radial-gradient(ellipse at 65% 20%, rgba(220, 100, 90, 0.5) 0%, transparent 60%),
    linear-gradient(160deg, #c94040 0%, #8b1a1a 55%, #5c1010 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  /* caduceus top area, text+socials bottom */
  padding: 36px 52px 28px 32px;
  gap: 0;
}

/* ── Caduceus icon — centred in upper half using flex trick ── */
.nf-card-icon {
  width: 60px;
  height: auto;
  object-fit: contain;
  /* Multiply blend removes white bg on dark/colored bg */
  mix-blend-mode: multiply;
  opacity: 0.55;
  /* push icon down visually to vertical-centre upper area */
  /* margin-top: 8px; */
  margin-bottom: auto;
  align-self: center;
  filter: none;
}

/* ── Tagline text ── */
.nf-card-tagline {
  font-family: 'Inter', sans-serif;
  font-size: var(--content-size);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
  margin: 0 0 12px 0;
  max-width: 254px;
}

/* ── Social icons row ── */
.nf-socials {
  display: flex;
  gap: 15px;
  align-items: center;
  padding-left: 18%;
}

.nf-social {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.15s ease, transform 0.1s ease;
}

.nf-social:hover {
  background: rgba(0, 0, 0, 0.65);
  transform: translateY(-2px);
}

/* ── Nav columns ── */
.nf-nav {
  display: flex;
  gap: 0;
  justify-content: space-around;
  align-items: flex-start;
  padding: 44px 60px 44px 40px;
}

.nf-col {
  display: flex;
  flex-direction: column;
}

.nf-col-heading {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: var(--heading-size);
  color: #ffffff;
  margin: 0 0 22px 0;
  letter-spacing: 0.1px;
}

.nf-col-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nf-col-list li a {
  font-family: 'Inter', sans-serif;
  font-size: var(--content-size);
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.nf-col-list li a:hover {
  color: #fff;
}

/* ── Copyright bar ── */
.nf-copy {
  background: #2e2e2e;
  text-align: center;
  /* padding: 14px 24px; */
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #c86060;
  letter-spacing: 0.2px;
  line-height: 1;
  padding: 2px;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .nf-footer {
    grid-template-columns: 1fr;
  }

  .nf-card-wrap {
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    width: 100%;
  }

  .nf-card {
    min-height: 200px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 28px 32px 40px 32px;
    gap: 20px;
  }

  .nf-card-icon {
    margin: 0;
    width: 64px;
    align-self: auto;
  }

  .nf-nav {
    padding: 32px 32px;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .nf-brand {
    padding: 28px 20px;
  }

  .nf-nav {
    flex-direction: column;
    gap: 24px;
    padding: 28px 24px;
  }

  .nf-card {
    padding: 24px;
  }
}

/* ── Red card: BOTH SIDES slanted (parallelogram shape) ── */
/* Overrides earlier single-side clip-path */
.nf-card-wrap {
  clip-path: polygon(0% 0%, 100% 0%, 82% 100%, 0% 100%);
}

/* ── Red card: true parallelogram — BOTH left and right edges diagonal ── */
.nf-card-wrap {
  clip-path: polygon(18% 0%, 100% 0%, 82% 100%, 0% 100%);
}

/* Widen the card wrapper so clipped parallelogram still looks full */
.nf-footer {
  grid-template-columns: 400px 1fr;
}

/* Prevent the card content from sitting in the clipped-off zones */
.nf-card {
  padding: 36px 64px 28px 48px;
}