/* Footer — single card, integrated light CTA, 3-zone body */

.site-footer.footer-v3 {
  --footer-navy: var(--navy, #071a36);
  --footer-ink: #0b172a;
  --footer-muted: #526071;
  --footer-line: #e1e7ef;
  --footer-soft: #f8fafc;
  --footer-tint: #eef3f8;
  --footer-tint-line: #dce4ed;
  --footer-wa: #16a05d;
  margin-top: 36px;
  padding: 0 0 calc(28px + env(safe-area-inset-bottom, 0px));
  background: transparent;
  color: var(--footer-ink);
  font-family: Manrope, system-ui, sans-serif;
}

.footer-v3-container {
  width: calc(100% - 48px);
  max-width: 1440px;
  margin-inline: auto;
}

.footer-v3-card {
  border: 1px solid var(--footer-line);
  border-radius: 24px;
  background: var(--footer-soft);
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(7, 28, 59, .06);
}

/* —— Integrated CTA band —— */
.footer-v3-cta {
  margin: 0;
  min-height: 0;
  padding: 28px 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  border-radius: 0;
  background: var(--footer-tint);
  border-bottom: 1px solid var(--footer-tint-line);
  color: var(--footer-ink);
  box-shadow: none;
}

.footer-v3-cta-copy {
  max-width: 560px;
  padding: 0;
  min-width: 0;
}

.footer-v3-cta-eyebrow {
  margin: 0 0 8px;
  color: #6a7a8c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  line-height: 1.2;
}

.footer-v3-cta h2 {
  margin: 0;
  max-width: none;
  color: var(--footer-navy);
  font-family: Outfit, Manrope, sans-serif;
  font-size: clamp(22px, 1.85vw, 30px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.footer-v3-cta-lead,
.footer-v3-cta p {
  margin: 8px 0 0;
  max-width: 42ch;
  color: var(--footer-muted);
  font-size: 14.5px;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -.01em;
}

.footer-v3-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
}

.footer-v3-cta-primary,
.footer-v3-cta-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease;
}

.footer-v3-cta-primary {
  border: 0;
  background: var(--footer-navy);
  color: #fff;
}

.footer-v3-cta-primary:hover {
  background: #0a2348;
  transform: translateY(-1px);
}

.footer-v3-cta-wa {
  border: 1px solid var(--footer-tint-line);
  background: #fff;
  color: var(--footer-navy);
}

.footer-v3-cta-wa:hover {
  background: #f5f8fb;
  border-color: rgba(7, 26, 54, .18);
  transform: translateY(-1px);
}

.footer-v3-cta-wa svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--footer-wa);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.footer-v3-cta-primary:focus-visible,
.footer-v3-cta-wa:focus-visible {
  outline: 2px solid var(--footer-navy);
  outline-offset: 3px;
}

/* —— Main body: brand | nav cluster | contact —— */
.footer-v3-grid {
  display: grid;
  grid-template-columns: minmax(250px, 1.15fr) minmax(430px, 1.8fr) minmax(260px, 1fr);
  gap: 48px;
  padding: 36px;
  align-items: start;
}

.footer-v3-brand {
  min-width: 0;
  max-width: none;
  display: grid;
  gap: 0;
  align-content: start;
}

.footer-v3-wordmark {
  display: inline-block;
  font: 400 30px/1 Righteous, Manrope, sans-serif;
  letter-spacing: .06em;
  text-decoration: none;
  color: var(--footer-navy);
  white-space: nowrap;
}

.footer-v3-brand-lead,
.footer-v3-brand > p {
  margin: 16px 0 0;
  max-width: 340px;
  color: var(--footer-muted);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: -.01em;
}

.footer-v3-brand-location {
  margin-top: 20px;
  width: 100%;
  max-width: 340px;
}

.footer-v3-location-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--footer-line);
  border-radius: 14px;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(7, 26, 54, .04),
    0 8px 24px rgba(7, 26, 54, .04);
}

.footer-v3-address {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 0;
  font-style: normal;
}

.footer-v3-address-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--footer-tint);
  border: 1px solid var(--footer-tint-line);
  color: var(--footer-navy);
}

.footer-v3-address-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-v3-address-text {
  display: block;
  padding-top: 2px;
  color: var(--footer-ink);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 550;
  letter-spacing: -.01em;
}

.footer-v3-map-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--footer-tint-line);
  border-radius: 10px;
  background: var(--footer-tint);
  color: var(--footer-navy);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -.01em;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.footer-v3-map-link svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .85;
}

.footer-v3-map-link:hover {
  background: #e8eef5;
  border-color: #cfd9e4;
  text-decoration: none;
  transform: translateY(-1px);
}

.footer-v3-map-link:active {
  transform: translateY(0);
}

.footer-v3-brand .footer-v3-social {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.footer-v3-brand .footer-v3-social a {
  color: var(--footer-muted);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.footer-v3-brand .footer-v3-social a:hover {
  color: var(--footer-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Nav cluster */
.footer-v3-nav-cluster {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 28px;
  min-width: 0;
}

.footer-v3-nav-cluster .footer-v3-products,
.footer-v3-nav-cluster .footer-v3-corporate,
.footer-v3-nav-cluster .footer-v3-actions-nav,
.footer-v3-contact {
  max-width: none;
  justify-self: stretch;
}

.footer-v3-nav > h2 {
  margin: 0 0 16px;
}

.footer-v3-accordion {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--footer-navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-align: left;
  cursor: default;
}

.footer-v3-accordion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.footer-v3-accordion i {
  display: none;
}

.footer-v3-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.footer-v3-nav a,
.footer-v3-nav button {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--footer-muted);
  font: inherit;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.55;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: color .16s ease;
}

.footer-v3-nav a:hover,
.footer-v3-nav button:hover {
  color: var(--footer-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-v3-nav a:focus-visible,
.footer-v3-nav button:focus-visible,
.footer-v3-brand a:focus-visible,
.footer-v3-legal a:focus-visible,
.footer-v3-contact a:focus-visible,
.footer-v3-map-link:focus-visible {
  outline: 2px solid var(--footer-navy);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Contact card */
.footer-v3-contact-card {
  padding: 20px 22px;
  border: 1px solid var(--footer-tint-line);
  border-radius: 16px;
  background: var(--footer-tint);
}

.footer-v3-contact-card > h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.01em;
  text-transform: none;
}

.footer-v3-contact-lead {
  margin: 6px 0 16px;
  color: var(--footer-muted);
  font-size: 12.5px;
  line-height: 1.5;
  font-weight: 500;
}

.footer-v3-contact address {
  margin: 0;
  display: grid;
  gap: 8px;
  font-style: normal;
}

.footer-v3-contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 6px 8px;
  margin: 0 -8px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background-color .16s ease;
}

.footer-v3-contact-row:hover {
  background: rgba(255, 255, 255, .72);
}

.footer-v3-contact-row:focus-visible {
  outline: 2px solid var(--footer-navy);
  outline-offset: 2px;
}

.footer-v3-contact-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(7, 26, 54, .06);
  display: grid;
  place-items: center;
  flex: 0 0 34px;
}

.footer-v3-contact-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--footer-navy);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-v3-contact-icon--wa svg {
  stroke: var(--footer-wa);
}

.footer-v3-contact-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.footer-v3-contact-copy small {
  color: var(--footer-muted);
  font-size: 11.5px;
  font-weight: 600;
}

.footer-v3-contact-copy b {
  color: var(--footer-navy);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  word-break: break-word;
}

.footer-v3-hours {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--footer-tint-line);
  color: var(--footer-muted);
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 550;
}

/* Bottom bar */
.footer-v3-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin: 0;
  padding: 18px 36px 20px;
  border-top: 1px solid var(--footer-line);
  color: var(--footer-muted);
  font-size: 12.5px;
  font-weight: 550;
}

.footer-v3-bottom p {
  margin: 0;
}

.footer-v3-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-v3-legal a {
  color: var(--footer-muted);
  text-decoration: none;
  font-weight: 650;
}

.footer-v3-legal a:hover {
  color: var(--footer-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Hide legacy leftovers */
.footer-v3-project-desk,
.footer-payment-band,
.footer-v3-toolbar,
.footer-v3-lang,
.footer-v3-cta-mini,
.footer-v3-logo {
  display: none !important;
}

@media (max-width: 1179px) {
  .footer-v3-cta {
    grid-template-columns: 1fr;
    align-items: stretch;
    justify-items: stretch;
    gap: 18px;
    padding: 26px 28px;
  }

  .footer-v3-cta-copy,
  .footer-v3-cta-copy h2,
  .footer-v3-cta-copy p,
  .footer-v3-cta-lead {
    max-width: none;
  }

  .footer-v3-cta-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .footer-v3-cta-primary,
  .footer-v3-cta-wa {
    width: 100%;
    box-sizing: border-box;
  }

  .footer-v3-grid {
    grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
    gap: 32px;
    padding: 32px 28px;
  }

  .footer-v3-brand {
    grid-column: 1 / -1;
  }

  .footer-v3-nav-cluster {
    gap: 24px;
  }

  .footer-v3-bottom {
    padding: 18px 28px;
  }
}

@media (max-width: 900px) {
  .footer-v3-container {
    width: calc(100% - 40px);
  }

  .footer-v3-nav-cluster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-v3-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .footer-v3-legal {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .footer-v3-legal a {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 42px;
    padding: 8px 10px;
    border-radius: 11px;
    border: 1px solid var(--footer-line);
    background: #fff;
    color: var(--footer-ink);
    font-size: 12.5px;
    font-weight: 650;
    letter-spacing: -.01em;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
  }

  .footer-v3-legal a:hover,
  .footer-v3-legal a:active {
    color: var(--footer-navy);
    background: #f5f8fb;
    text-decoration: none;
  }

  .footer-v3-legal a:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .site-footer.footer-v3 {
    margin-top: 32px;
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  .footer-v3-container {
    width: calc(100% - 32px);
  }

  .footer-v3-card {
    border-radius: 20px;
  }

  .footer-v3-cta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 22px 18px;
  }

  .footer-v3-cta-copy {
    width: 100%;
  }

  .footer-v3-cta h2 {
    font-size: clamp(20px, 5.2vw, 24px);
    line-height: 1.2;
    letter-spacing: -.03em;
  }

  .footer-v3-cta-lead,
  .footer-v3-cta p {
    margin-top: 8px;
    font-size: 13.5px;
    line-height: 1.45;
  }

  .footer-v3-cta-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .footer-v3-cta-primary,
  .footer-v3-cta-wa {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    font-size: 14px;
  }

  .footer-v3-cta-wa span {
    white-space: nowrap;
  }

  .footer-v3-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 24px 20px 8px;
  }

  .footer-v3-brand {
    order: 1;
    padding-bottom: 22px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--footer-line);
  }

  .footer-v3-brand-lead,
  .footer-v3-brand > p,
  .footer-v3-brand-location {
    max-width: none;
  }

  .footer-v3-location-card {
    padding: 16px;
    border-radius: 16px;
  }

  .footer-v3-map-link {
    min-height: 44px;
  }

  .footer-v3-nav-cluster {
    order: 3;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .footer-v3-nav {
    width: 100%;
    padding: 0;
    border-top: 1px solid var(--footer-line);
  }

  .footer-v3-nav:first-child {
    border-top: 0;
  }

  .footer-v3-nav > h2 {
    margin: 0;
  }

  .footer-v3-accordion {
    width: 100%;
    min-height: 52px;
    padding: 14px 0;
    cursor: pointer;
    pointer-events: auto;
  }

  .footer-v3-accordion i {
    display: inline-block;
    position: relative;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
  }

  .footer-v3-accordion i::before,
  .footer-v3-accordion i::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--footer-navy);
    transform: translate(-50%, -50%);
  }

  .footer-v3-accordion i::before {
    width: 12px;
    height: 1.5px;
  }

  .footer-v3-accordion i::after {
    width: 1.5px;
    height: 12px;
  }

  .footer-v3-accordion[aria-expanded='true'] i::after {
    display: none;
  }

  .footer-v3-panel {
    padding: 0 0 14px;
  }

  .footer-v3-contact {
    order: 2;
    margin: 8px 0 20px;
    padding: 0;
    border-top: 0;
    width: 100%;
  }

  .footer-v3-contact-card {
    width: 100%;
    box-sizing: border-box;
  }

  .footer-v3-products { order: 1; }
  .footer-v3-corporate { order: 2; }
  .footer-v3-actions-nav { order: 3; }

  .footer-v3-panel[hidden] {
    display: none !important;
  }

  .footer-v3-nav a,
  .footer-v3-nav button {
    min-height: 44px;
  }

  .footer-v3-nav ul {
    gap: 2px;
  }

  .footer-v3-contact-copy b {
    white-space: normal;
  }

  .footer-v3-bottom {
    padding: 16px 16px 18px;
  }

  .footer-v3-bottom p {
    font-size: 12px;
    line-height: 1.4;
  }

  .footer-v3-legal a {
    min-height: 40px;
    font-size: 12px;
  }
}

@media (min-width: 768px) {
  .telo-advisor__launcher {
    right: max(24px, env(safe-area-inset-right));
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 767px) {
  .telo-advisor__launcher {
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-v3-cta-primary,
  .footer-v3-cta-wa,
  .footer-v3-nav a,
  .footer-v3-nav button,
  .footer-v3-legal a {
    transition: none;
  }

  .footer-v3-cta-primary:hover,
  .footer-v3-cta-wa:hover {
    transform: none;
  }
}
