/* Shared Netsons footer. Layout, type, controls, then responsive and Eco states. */
.woo-netsons-footer {
  --footer-text: #11213b;
  --footer-heading: #0d2746;
  --footer-link: #52657a;
  --footer-muted: #687b90;
  --footer-ai-copy: #50647d;
  --footer-border: #dce6f0;
  --footer-accent: #1769e0;
  --footer-grade: #1769e0;
  --footer-social: #11213b;
  width: 100%;
  margin: 0;
  padding: var(--ns-space-6) 0 var(--ns-space-4);
  background: #fff;
  color: var(--footer-text);
  font:
    400 var(--ns-size-base) / 1.5 "Poppins",
    sans-serif;
}

.woo-footer-container {
  width: min(calc(100% - var(--ns-container-gutter)), var(--ns-container));
  margin-inline: auto;
}

.woo-footer-head {
  display: flex;
  min-height: 53px;
  margin-bottom: var(--ns-space-6);
  align-items: flex-start;
  justify-content: space-between;
}

.woo-footer-head .netsons-menu-logo {
  display: flex;
  align-items: flex-start;
}

.woo-footer-head .custom-logo-link {
  display: block;
}

.woo-footer-head .custom-logo {
  display: block;
  width: 148px;
  max-width: 100%;
  height: auto;
}
.woo-footer-tools {
  display: flex;
  align-items: center;
  gap: var(--ns-space-1);
}

.woo-footer-directory {
  display: grid;
  grid-template-columns: 0.82fr 0.82fr 1.02fr 1.28fr 1.52fr;
  align-items: start;
  gap: var(--ns-space-5);
}

.woo-footer-directory > * {
  min-width: 0;
}
.woo-footer-directory h2 {
  position: relative;
  display: flex;
  margin: 0 0 var(--ns-space-3);
  padding-bottom: var(--ns-space-2);
  align-items: center;
  gap: var(--ns-space-1);
  color: var(--footer-heading);
  font-size: var(--ns-size-base);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
}

.woo-footer-directory h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 38px;
  height: 2px;
  border-radius: 999px;
  background: var(--footer-accent);
}

.woo-footer-directory h2 .wp-ni {
  width: 20px;
  margin-left: -4px;
  font-size: 16px;
  text-align: center;
}
.woo-footer-directory ul {
  display: grid;
  margin: 0;
  padding: 0;
  gap: var(--ns-space-1);
  list-style: none;
}
.woo-footer-directory li {
  font-size: var(--ns-size-base);
  line-height: 1.65;
}
.woo-footer-directory a {
  color: var(--footer-link);
  font-size: var(--ns-size-base);
  line-height: 1.6;
}
.woo-footer-directory a:hover,
.woo-footer-legal a:hover {
  text-decoration: underline;
}
.woo-footer-contacts ul {
  display: grid;
  margin: 0;
  padding: 0;
  gap: var(--ns-space-1);
  list-style: none;
}
.woo-footer-contacts li {
  min-width: 0;
  font-size: var(--ns-size-base);
  line-height: 1.6;
}
.woo-footer-contacts ul a {
  color: var(--footer-link);
  font-size: var(--ns-size-base);
  line-height: 1.6;
}
/* Green profile: copy is supplied by the localized theme catalog. */
.woo-carbon-card {
  padding-left: var(--ns-space-4);
  border-left: 2px solid #dce8f5;
}
.woo-green-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--ns-space-2);
}
.woo-green-heading strong {
  color: var(--footer-grade);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
}
.woo-green-heading span {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}
.woo-carbon-card > p {
  margin: var(--ns-space-2) 0 0;
  font-size: var(--ns-size-base);
  line-height: 1.6;
}
.woo-green-metrics {
  display: grid;
  margin: var(--ns-space-2) 0;
  padding: var(--ns-space-2) 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--ns-space-1);
  border-block: 1px solid var(--footer-border);
}
.woo-green-metrics > span {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: var(--ns-space-tight);
}
.woo-green-metrics b {
  min-width: 0;
  font-size: var(--ns-size-base);
  font-weight: 700;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.woo-green-metrics small {
  color: var(--footer-muted);
  font-size: var(--ns-size-xs);
  font-weight: 500;
  line-height: 1.65;
}
.woo-green-method {
  display: block;
  color: var(--footer-muted);
  font-size: var(--ns-size-xs);
  line-height: 1.65;
}
.woo-green-action {
  display: flex;
  width: 100%;
  min-height: var(--ns-control-height-compact);
  margin: var(--ns-space-1) 0 0;
  padding: 0;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  color: var(--footer-accent);
  font-size: var(--ns-size-base);
  font-weight: 500;
  line-height: 1.6;
  text-align: left;
  cursor: pointer;
}
.woo-footer-tools > .wp-eco-toggle .wp-ni {
  transition: color 200ms ease, text-shadow 200ms ease;
}
.woo-footer-tools > .wp-eco-toggle.active .wp-ni {
  color: #35bc70;
  text-shadow:
    0 0 3px rgb(95 209 154 / 0.95),
    0 0 9px rgb(53 188 112 / 0.8),
    0 0 18px rgb(53 188 112 / 0.6);
}
.woo-footer-tools > .wp-eco-toggle.active.is-neon-flickering .wp-ni,
.woo-green-action.is-neon-flickering {
  animation: wp-eco-neon-flicker 850ms steps(1, end) both;
}

/* Language and energy controls. Only Italian and English are exposed. */
.woo-footer-languages {
  position: relative;
}
.woo-footer-languages > summary,
.woo-footer-tools > .wp-eco-toggle {
  display: inline-flex;
  height: var(--ns-control-height-compact);
  margin: 0;
  padding: var(--ns-space-1) var(--ns-space-2);
  align-items: center;
  justify-content: center;
  gap: var(--ns-space-tight);
  border: 1px solid var(--footer-border);
  border-radius: var(--ns-radius-sm);
  background: #fff;
  color: var(--footer-text);
  line-height: 24px;
  cursor: pointer;
  list-style: none;
  box-shadow: 0 8px 20px rgb(17 50 88 / 0.04);
}
.woo-footer-languages > summary {
  min-width: 60px;
}
.woo-footer-tools > .wp-eco-toggle {
  width: var(--ns-touch-target);
}
.woo-footer-tools .wp-ni {
  font-size: 20px;
}
.woo-footer-languages .ns-language-flag {
  flex-shrink: 0;
  border-radius: 2px;
}
.woo-footer-languages > summary::-webkit-details-marker {
  display: none;
}
.woo-footer-languages > div {
  position: absolute;
  z-index: 20;
  right: 0;
  bottom: calc(100% + var(--ns-space-1));
  display: grid;
  width: min(180px, calc(100vw - 56px));
  padding: var(--ns-space-1);
  grid-template-columns: minmax(0, 1fr);
  gap: var(--ns-space-tight);
  border: 1px solid var(--footer-border);
  border-radius: var(--ns-radius-sm);
  background: #fff;
  box-shadow: 0 18px 44px rgb(8 36 76 / 0.14);
}
.woo-footer-languages > div a {
  display: flex;
  min-height: var(--ns-touch-target);
  padding: var(--ns-space-1) var(--ns-space-2);
  align-items: center;
  gap: var(--ns-space-1);
  border-radius: var(--ns-radius-sm);
  color: #253b57;
  font-size: var(--ns-size-base);
  line-height: 1.6;
}
.woo-footer-languages > div a:is(:hover, .active) {
  background: #edf5ff;
  color: #0d5dcc;
}

/* AI discovery, social links and legal line. */
.woo-footer-rule {
  height: 0;
  margin: var(--ns-space-5) 0 var(--ns-space-4);
}
.woo-footer-ai-row {
  display: grid;
  min-height: 82px;
  grid-template-columns: minmax(240px, 0.9fr) minmax(420px, 1.35fr) auto;
  align-items: center;
  gap: var(--ns-space-4);
}
.woo-footer-ai-copy {
  display: grid;
  gap: var(--ns-space-1);
}
.woo-footer-ai-copy strong {
  font-size: var(--ns-size-base);
  font-weight: 600;
  line-height: 1.35;
}
.woo-footer-ai-copy p {
  margin: 0;
  color: var(--footer-ai-copy);
  font-size: var(--ns-size-xs);
  line-height: 1.65;
}
.woo-footer-ai-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--ns-space-1);
}
.woo-footer-ai-links a {
  display: inline-flex;
  width: var(--ns-touch-target);
  height: var(--ns-touch-target);
  padding: var(--ns-space-1);
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd9e7;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.72);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}
.woo-footer-ai-links img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.woo-footer-ai-links a:hover {
  border-color: var(--footer-accent);
  background: #f5f9ff;
  transform: translateY(-1px);
}
.woo-footer-socials {
  display: flex;
  align-items: center;
  gap: var(--ns-space-3);
  white-space: nowrap;
}
.woo-footer-socials > span {
  display: none;
  font-weight: 600;
}
.woo-footer-socials a {
  color: var(--footer-social);
  font-size: var(--ns-size-xs);
  line-height: 1.5;
}
.woo-footer-legal {
  margin: var(--ns-space-4) 0 0;
  font-size: var(--ns-size-xs);
  line-height: 1.65;
}
.woo-footer-legal strong {
  font-weight: 700;
}
.woo-footer-legal a {
  text-decoration: underline;
}

@media (max-width: 1279px) {
  .woo-footer-directory {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--ns-space-4);
  }
  .woo-carbon-card {
    grid-column: 1 / -1;
  }
  .woo-footer-ai-row {
    grid-template-columns: minmax(240px, 0.8fr) minmax(360px, 1.2fr);
  }
  .woo-footer-socials {
    grid-column: 1 / -1;
    justify-content: center;
    gap: var(--ns-space-2);
  }
  .woo-footer-socials > span {
    display: block;
  }
}

@media (max-width: 767px) {
  .woo-footer-head {
    margin-bottom: var(--ns-space-5);
  }
  .woo-footer-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .woo-carbon-card {
    padding-left: 0;
    border-left: 0;
  }
  .woo-green-metrics {
    grid-template-columns: 1fr;
  }
  .woo-green-metrics > span {
    grid-template-columns: minmax(92px, auto) minmax(0, 1fr);
    align-items: baseline;
  }
  .woo-footer-ai-row {
    grid-template-columns: 1fr;
    gap: var(--ns-space-2);
    text-align: center;
  }
  .woo-footer-ai-links a {
    width: var(--ns-control-height-compact);
    height: var(--ns-control-height-compact);
  }
  .woo-footer-socials {
    grid-column: auto;
    margin-top: var(--ns-space-tight);
  }
  .woo-footer-socials > span {
    margin-right: var(--ns-space-1);
  }
}

/* Eco uses the same full-width frame; only palette and profile-card layout change. */
html[data-theme="eco"] .woo-netsons-footer {
  --footer-text: #f0f4f8;
  --footer-heading: #f0f4f8;
  --footer-link: #afbfce;
  --footer-muted: #b9c4d0;
  --footer-ai-copy: #afbfce;
  --footer-border: #3a516e;
  --footer-accent: #88beff;
  --footer-grade: #5fd19a;
  --footer-social: #dce7f1;
  background: linear-gradient(180deg, #0d1117 0%, #090c10 100%);
}
html[data-theme="eco"] .woo-footer-directory h2::after {
  background: #79b6ff;
}
html[data-theme="eco"] .woo-carbon-card {
  padding: var(--ns-space-4);
  overflow: hidden;
  border: 1px solid #354354;
  border-radius: var(--ns-radius);
  background: #171d26;
}
html[data-theme="eco"] .woo-green-heading span {
  color: #f2f6fb;
}
html[data-theme="eco"] .woo-carbon-card > p {
  color: #afbfce;
}
html[data-theme="eco"] .woo-green-metrics {
  grid-template-columns: 1fr;
  gap: var(--ns-space-1);
}
html[data-theme="eco"] .woo-green-metrics > span {
  grid-template-columns: minmax(92px, auto) minmax(0, 1fr);
  align-items: baseline;
  gap: var(--ns-space-2);
}
html[data-theme="eco"] .woo-green-metrics b {
  color: #afbfce;
}
html[data-theme="eco"] .woo-footer-legal a {
  color: #afbfce;
}
html[data-theme="eco"] .woo-footer-languages > summary,
html[data-theme="eco"] .woo-footer-languages > div {
  background: #223a58;
}
html[data-theme="eco"] .woo-footer-languages > div a {
  color: #dce6f0;
}
html[data-theme="eco"] .woo-footer-languages > div a:is(:hover, .active) {
  background: #294565;
  color: #fff;
}
html[data-theme="eco"] .woo-footer-tools > .wp-eco-toggle {
  border-color: #2c3746;
  background: #171d26;
  color: #eef3f8;
}
html[data-theme="eco"] body .woo-footer-head .custom-logo {
  filter: brightness(0) invert(1);
}
html[data-theme="eco"] .woo-footer-ai-links a {
  border-color: #2c3746;
  background: #171d26;
}
html[data-theme="eco"] body .woo-footer-ai-links img {
  filter: brightness(0) saturate(100%) invert(79%) sepia(45%) saturate(672%)
    hue-rotate(184deg) brightness(105%) contrast(101%);
}
