/* ============================================================
   Valens Clinic — Footer v2
   Upload to: themes/valensclinic/assets/css/valens-footer-v2.css
   ============================================================ */

:root {
  --fv2-bg: #08111f;
  --fv2-card: rgba(255, 255, 255, 0.04);
  --fv2-border: rgba(255, 255, 255, 0.08);
  --fv2-cyan: hsl(196, 90%, 55%);
  --fv2-text: #ffffff;
  --fv2-muted: rgba(255, 255, 255, 0.65);
  --fv2-heading: rgba(255, 255, 255, 0.45);
  --fv2-inner-max: 1180px;
  --fv2-grid-cols: minmax(300px, 400px) minmax(400px, 1.5fr) minmax(130px, 180px);
  --fv2-grid-gap: clamp(28px, 3.5vw, 44px);
}

/* Hide legacy footer */
.footer:not(.footer-v2),
.desktop-footer,
.mobile-footer {
  display: none !important;
}

.footer-v2 {
  background: var(--fv2-bg);
  color: var(--fv2-text);
  padding: 72px 0 0;
  font-family: inherit;
}

.footer-v2 .container-s.footer-v2__container,
.footer-v2__container {
  max-width: var(--fv2-inner-max);
  width: 100%;
  margin-inline: auto;
  padding-bottom: 72px;
  box-sizing: border-box;
}

.footer-v2__grid {
  display: grid;
  grid-template-columns: var(--fv2-grid-cols);
  grid-template-rows: auto auto auto;
  column-gap: var(--fv2-grid-gap);
  row-gap: 16px;
  align-items: start;
  justify-items: stretch;
  width: 100%;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--fv2-border);
}

.footer-v2__brand {
  grid-column: 1;
  grid-row: 1 / -1;
  justify-self: end;
  padding-right: clamp(8px, 1.5vw, 20px);
  max-width: 400px;
}

/* Visit: split into grid rows so Explore can align with Young Valens */
.footer-v2__visit {
  display: contents;
}

.footer-v2__visit > .footer-v2__heading {
  grid-column: 2;
  grid-row: 1;
  margin-bottom: 0;
  justify-self: center;
  width: min(100%, 480px);
}

.footer-v2__locations {
  display: contents;
}

.footer-v2__location-card:nth-child(1) {
  grid-column: 2;
  grid-row: 2;
  justify-self: center;
  width: min(100%, 480px);
}

.footer-v2__location-card:nth-child(2) {
  grid-column: 2;
  grid-row: 3;
  justify-self: center;
  width: min(100%, 480px);
}

.footer-v2__nav-stack {
  display: contents;
}

/* Useful: top rows, same column as Explore */
.footer-v2__nav-col--useful {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: start;
  justify-self: start;
  padding-left: clamp(8px, 1.5vw, 20px);
}

/* Explore: row 3, left-aligned under Useful, beside Young Valens */
.footer-v2__nav-col--explore {
  grid-column: 3;
  grid-row: 3;
  align-self: start;
  justify-self: start;
  padding-left: clamp(8px, 1.5vw, 20px);
}

.footer-v2__nav-col--useful,
.footer-v2__nav-col--explore {
  min-width: 110px;
}

/* ---- Brand ---- */
.footer-v2__logo {
  display: inline-block;
  margin-bottom: 20px;
}

.footer-v2__logo-img,
.footer-v2__logo img {
  width: 90px;
  height: auto;
  display: block;
}

.footer-v2__tagline {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--fv2-muted);
  max-width: 300px;
}

.footer-v2__contact {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.footer-v2__contact li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-v2__contact a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-v2__contact a:hover {
  color: var(--fv2-cyan);
}

.footer-v2__contact-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(92, 225, 230, 0.1);
  color: var(--fv2-cyan);
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.footer-v2__contact a:hover .footer-v2__contact-icon {
  background: var(--fv2-cyan);
  color: #0b1522;
}

.footer-v2__social {
  display: flex;
  gap: 10px;
}

.footer-v2__social-link {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.footer-v2__social-link:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.footer-v2__social-link--fb {
  background: #1877f2;
}

.footer-v2__social-link--ig {
  background: linear-gradient(135deg, #feda75 0%, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5 100%);
}

.footer-v2__social-link--li {
  background: #0a66c2;
}

.footer-v2__social-link svg {
  width: 24px;
  height: 24px;
}

/* ---- Visit us ---- */
.footer-v2__heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fv2-cyan);
}

/* location cards participate in parent grid via .footer-v2__locations { display: contents } */

.footer-v2__location-card {
  background: var(--fv2-card);
  border: 1px solid var(--fv2-border);
  border-radius: 14px;
  padding: 18px 22px;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.footer-v2__location-card:hover {
  border-color: rgba(92, 225, 230, 0.3);
}

.footer-v2__location-name {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fv2-cyan);
}

.footer-v2__location-name a {
  color: var(--fv2-cyan);
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-v2__location-name a:hover {
  opacity: 0.85;
}

.footer-v2__location-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--fv2-text);
}

.footer-v2__location-row svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--fv2-cyan);
  opacity: 0.85;
}

.footer-v2__location-row--muted {
  color: var(--fv2-muted);
  font-size: 12px;
}

.footer-v2__hours {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--fv2-border);
}

.footer-v2__hours-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--fv2-muted);
}

.footer-v2__hours-label svg {
  color: var(--fv2-cyan);
}

.footer-v2__hours-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--fv2-muted);
  margin-bottom: 4px;
}

.footer-v2__hours-row span:last-child {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ---- Nav links ---- */
.footer-v2__nav-col {
  min-width: 110px;
}

.footer-v2__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-v2__links li {
  margin-bottom: 10px;
}

.footer-v2__links a {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  color: var(--fv2-text);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-v2__links a:hover {
  color: var(--fv2-cyan);
}

.footer-v2__link-arrow {
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s, transform 0.2s;
  flex-shrink: 0;
  margin-left: auto;
}

.footer-v2__links a:hover .footer-v2__link-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ---- Payments ---- */
.footer-v2__payments {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 14px;
  width: 100%;
  padding: 28px 0;
  border-bottom: 1px solid var(--fv2-border);
}

.footer-v2__payments-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 14px;
  width: auto;
}

.footer-v2__payments-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fv2-heading);
  white-space: nowrap;
  line-height: 1;
  flex-shrink: 0;
  grid-column: unset;
}

.footer-v2__payments-logos {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  flex-shrink: 0;
  grid-column: unset;
}

.footer-v2__payment-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.footer-v2__payment-logo img {
  height: 18px;
  width: auto;
  max-width: 56px;
  display: block;
  object-fit: contain;
}

/* ---- Legal ---- */
.footer-v2__legal {
  display: grid;
  grid-template-columns: var(--fv2-grid-cols);
  column-gap: var(--fv2-grid-gap);
  align-items: center;
  width: 100%;
  padding-top: 28px;
  padding-bottom: 8px;
  font-size: 12px;
  color: var(--fv2-muted);
}

.footer-v2__copy {
  grid-column: 1;
  justify-self: end;
  padding-right: clamp(8px, 1.5vw, 20px);
  max-width: 400px;
  width: 100%;
  margin: 0;
  text-align: left;
}

.footer-v2__license {
  margin: 0;
  text-align: center;
  white-space: nowrap;
}

.footer-v2__legal-links {
  grid-column: 3;
  justify-self: start;
  padding-left: clamp(8px, 1.5vw, 20px);
  display: flex;
  justify-content: flex-start;
  flex-shrink: 0;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-v2__legal-links a {
  color: var(--fv2-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-v2__legal-links a:hover {
  color: var(--fv2-cyan);
}

/* ---- WhatsApp ---- */
.footer-v2__whatsapp {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.footer-v2__whatsapp:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .footer-v2__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    row-gap: 36px;
    max-width: none;
    width: 100%;
  }

  .footer-v2__payments {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
  }

  .footer-v2__legal {
    display: block;
    width: 100%;
  }

  .footer-v2__payments-label,
  .footer-v2__copy {
    max-width: none;
    padding-right: 0;
    margin-bottom: 0;
  }

  .footer-v2__payments-inner {
    width: auto;
  }

  .footer-v2__legal-links {
    grid-column: auto;
    padding-left: 0;
    justify-content: flex-start;
  }

  .footer-v2__brand {
    grid-column: 1 / -1;
    grid-row: auto;
    justify-self: start;
    padding-right: 0;
    max-width: none;
  }

  .footer-v2__visit {
    display: block;
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .footer-v2__visit > .footer-v2__heading {
    grid-column: auto;
    grid-row: auto;
    margin-bottom: 16px;
  }

  .footer-v2__locations {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .footer-v2__location-card:nth-child(1),
  .footer-v2__location-card:nth-child(2) {
    grid-column: auto;
    grid-row: auto;
    justify-self: stretch;
    width: 100%;
    max-width: 480px;
  }

  .footer-v2__nav-col--useful {
    grid-column: 1;
    grid-row: auto;
    padding-left: 0;
  }

  .footer-v2__nav-col--explore {
    grid-column: 2;
    grid-row: auto;
    padding-left: 0;
  }
}

@media (max-width: 767px) {
  .footer-v2 {
    padding-top: 48px;
  }

  .footer-v2__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-v2__visit,
  .footer-v2__nav-col--useful,
  .footer-v2__nav-col--explore {
    grid-column: 1;
    grid-row: auto;
  }

  .footer-v2__location-card {
    max-width: none;
  }

  .footer-v2__nav-col--useful,
  .footer-v2__nav-col--explore {
    min-width: 0;
  }

  .footer-v2__payments {
    flex-wrap: wrap;
  }

  .footer-v2__payments-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .footer-v2__legal {
    display: block;
  }

  .footer-v2__legal-links {
    justify-content: flex-end;
  }
}
