/* Custom CSS for Cadenza.vc website updates */

/* ===== Strategies Section ===== */
.strategies_section {
  z-index: 1;
  padding-top: 96px;
  padding-bottom: 96px;
  position: relative;
}

.strategies-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 0 96px;
  margin-top: 40px;
}

.strategy-card {
  background-color: var(--black);
  border: 1px solid rgba(211, 213, 206, 0.15);
  padding: 48px 40px;
  transition:
    border-color 0.3s ease,
    background-color 0.3s ease;
  position: relative;
}

.strategy-card:hover {
  border-color: rgba(211, 213, 206, 0.4);
}

.strategy-card-title {
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 100%;
  color: var(--light-grey);
  margin-bottom: 20px;
}

.strategy-card-desc {
  color: var(--light-grey);
  opacity: 0.7;
  font-size: 0.95rem;
  line-height: 160%;
  letter-spacing: 0.01rem;
}

.strategy-sub-items {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(211, 213, 206, 0.1);
}

.strategy-sub-item {
  margin-bottom: 24px;
}

.strategy-sub-item:last-child {
  margin-bottom: 0;
}

.strategy-sub-title {
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--light-grey);
  margin-bottom: 12px;
  opacity: 0.9;
}

.strategy-sub-desc {
  color: var(--light-grey);
  opacity: 0.6;
  font-size: 0.85rem;
  line-height: 160%;
  letter-spacing: 0.01rem;
}

/* ===== Footer Office Addresses ===== */
.footer_section {
  background-color: var(--black0);
  border: 1px solid rgba(211, 213, 206, 0.55);
  border-radius: 16px;
  overflow: hidden;
}

.footer_section .marker-line {
  display: none;
}

.footer_section .btn-social {
  background-color: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(211, 213, 206, 0.28);
  border-radius: 14px;
}

.footer_section .btn-social:hover {
  background-color: rgba(0, 0, 0, 0.45);
  border-color: rgba(211, 213, 206, 0.42);
}

.login-dropdown .btn-login {
  background-color: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(211, 213, 206, 0.55);
  border-radius: 14px;
}

.login-dropdown .btn-login:hover {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.45);
  border-color: rgba(211, 213, 206, 0.75);
}

.footer-addresses {
  display: flex;
  gap: 48px;
  margin-top: 8px;
}

.footer-address {
  color: var(--light-grey);
  opacity: 0.6;
  font-size: 0.85rem;
  line-height: 150%;
  letter-spacing: 0.02rem;
}

.footer-address-label {
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  font-size: 0.7rem;
  opacity: 0.8;
  margin-bottom: 4px;
}

/* ===== Footer Scale Tuning (Desktop) ===== */
@media screen and (min-width: 992px) {
  .footer_section {
    margin-left: 48px;
    margin-right: 48px;
  }

  .footer_section {
    padding-top: 22px;
    padding-bottom: 10px;
  }

  .footer_section .title-wrapper {
    padding-top: 26px;
    padding-bottom: 8px;
  }

  .footer_section .font-small {
    font-size: 1.18rem;
    line-height: 120%;
    letter-spacing: 0.04rem;
  }

  .footer {
    padding-bottom: 20px;
  }

  .footer .xlarge-content-container {
    max-width: 520px;
  }

  .footer .btn-social {
    height: 38px;
    margin-right: 10px;
    padding-left: 16px;
    padding-right: 16px;
    font-size: 0.84rem;
  }

  .footer-location {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .footer-addresses {
    gap: 28px;
    margin-top: 2px;
  }

  .footer-address {
    font-size: 0.76rem;
  }

  .footer-legal {
    padding-bottom: 8px;
  }

  .footer-legal .font-overline {
    font-size: 0.82rem;
    letter-spacing: 0.07rem;
  }

  .img-logo-footer {
    width: 108px;
  }
}

/* ===== Team Member Placeholder Photo ===== */
.team-photo-placeholder {
  background-color: var(--black);
  border: 1px solid rgba(211, 213, 206, 0.2);
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem;
  color: var(--light-grey);
  opacity: 0.5;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
}

/* ===== Team Bio Overlay Card ===== */
.bio-overlay {
  background-color: transparent;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 12px 18px;
  max-width: 100vw;
  box-sizing: border-box;
  overflow-x: auto;
  position: fixed;
  left: 0;
  right: 0;
  z-index: 9999;
  pointer-events: none;
}

.bio-overlay .bio-container {
  width: min(96vw, 320px);
  height: auto;
  max-height: 90vh;
  margin: 0 auto;
  padding: 14px 14px 12px;
  color: var(--black);
  background-color: var(--light-grey);
  background-image:
    radial-gradient(rgba(35, 35, 33, 0.08) 0.6px, transparent 0.6px),
    radial-gradient(rgba(35, 35, 33, 0.06) 0.6px, transparent 0.6px);
  background-size: 8px 8px, 11px 11px;
  background-position: 0 0, 4px 5px;
  border: 1px solid rgba(35, 35, 33, 0.3);
  overflow-y: auto;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
  transform: perspective(860px) rotateX(var(--team-bio-tilt-x, 0deg)) rotateY(var(--team-bio-tilt-y, 0deg));
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease;
  box-sizing: border-box;
  pointer-events: auto;
}
@media screen and (max-width: 600px) {
  .bio-overlay .bio-container {
    width: 96vw;
    max-width: 96vw;
    margin: 0 2vw;
    left: 0;
    right: 0;
    padding: 10px 4px 10px 4px;
    font-size: 0.95em;
  }
}

.bio-overlay .bio {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bio-overlay-title {
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 0;
}

.bio-overlay .bio-overlay-title .font-name {
  margin-top: 0;
  margin-bottom: 0;
  color: var(--black);
  font-size: 2rem;
}

.bio-overlay-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.bio-overlay .team-links-wrapper {
  padding-top: 0;
}

.bio-overlay .social-link-container,
.bio-close-btn {
  background-color: transparent;
  border: 1px solid var(--black);
  border-radius: 0;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  margin-right: 0;
  padding: 0;
  color: var(--black);
  display: flex;
}

.bio-close-btn {
  cursor: pointer;
  line-height: 1;
  font-size: 1rem;
}

.bio-close-btn span {
  transform: translateY(-1px);
}

.bio-overlay .social-link-container img {
  width: 12px;
  height: 12px;
  display: block;
}

.bio-overlay .font-paragraph {
  margin-top: 0;
  margin-bottom: 0;
  color: var(--black);
  opacity: 1;
  font-size: 0.95rem;
  line-height: 145%;
  letter-spacing: 0.01rem;
}

.bio-overlay .font-paragraph p {
  margin-top: 0;
  margin-bottom: 0;
}

.bio-close-btn:hover,
.bio-overlay .social-link-container:hover {
  background-color: rgba(35, 35, 33, 0.08);
}

/* ===== Team Bio Experiments (reversible) ===== */
html[data-team-bio-style='baseline'] .bio-overlay .bio-container {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

html[data-team-bio-style='edge'] .bio-overlay .bio-container {
  border-width: 2px;
  border-color: rgba(35, 35, 33, 0.55);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
  background-image:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
    radial-gradient(rgba(35, 35, 33, 0.08) 0.6px, transparent 0.6px),
    radial-gradient(rgba(35, 35, 33, 0.06) 0.6px, transparent 0.6px);
}

html[data-team-bio-style='soft'] .bio-overlay .bio-container {
  border-color: rgba(35, 35, 33, 0.18);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 44%),
    radial-gradient(rgba(35, 35, 33, 0.06) 0.6px, transparent 0.6px);
  background-size: auto, 9px 9px;
  background-position: 0 0, 0 0;
}

html[data-team-bio-style='mono'] .bio-overlay .bio-container {
  background-color: var(--black0);
  background-image: none;
  border-color: rgba(211, 213, 206, 0.45);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  color: var(--light-grey);
}

html[data-team-bio-style='mono'] .bio-overlay .bio-overlay-title .font-name,
html[data-team-bio-style='mono'] .bio-overlay .font-paragraph {
  color: var(--light-grey);
}

html[data-team-bio-style='mono'] .bio-overlay .social-link-container,
html[data-team-bio-style='mono'] .bio-close-btn {
  border-color: var(--light-grey);
  color: var(--light-grey);
}

html[data-team-bio-style='mono'] .bio-close-btn:hover,
html[data-team-bio-style='mono'] .bio-overlay .social-link-container:hover {
  background-color: rgba(211, 213, 206, 0.1);
}

.bio-overlay .bio-container.team-bio-hovered {
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

/* ===== Team Card Filtering ===== */
.team-member-card {
  transition: opacity 0.4s ease, filter 0.4s ease;
}

.team-member-card.dimmed {
  opacity: 0.4;
  filter: grayscale(100%) brightness(0.7);
}

.team-member-card.dimmed .team-member-image img {
  filter: grayscale(100%) brightness(0.6);
}

/* ===== Portfolio Grid Updates ===== */
.portfolio-grid-container {
  margin-bottom: 24px;
}

/* Portfolio placeholder for companies without images */
.portfolio-placeholder {
  background-color: var(--black);
  border: 1px solid rgba(211, 213, 206, 0.15);
  width: 160px;
  height: 160px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 16px;
}

.portfolio-placeholder-name {
  color: var(--light-grey);
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  font-size: 0.75rem;
  line-height: 140%;
}

/* ===== Home Latest Cards (Desktop) ===== */
@media screen and (min-width: 992px) {
  .news_section {
    padding-bottom: 36px;
  }

  .news_section .div-block-2 {
    grid-column-gap: 1.8%;
    grid-row-gap: 1.8%;
    padding-left: 48px;
    padding-right: 48px;
  }

  .news_section .news-block-large {
    background-color: #2a2a2a;
    border: 1px solid rgba(211, 213, 206, 0.9);
    border-radius: 16px;
    width: 49.1%;
    min-height: 280px;
    margin-bottom: 0;
    padding: 38px 34px 22px;
    position: relative;
    transition:
      background-color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
      border-color 0.3s ease;
  }

  .news_section .news-block-large:hover {
    background-color: #2a2a2a;
    border-color: rgba(211, 213, 206, 1);
  }

  .news_section .news-all-link-large {
    height: 100%;
    padding-top: 0;
    padding-bottom: 0;
    justify-content: flex-start;
    align-items: stretch;
    gap: 24px;
  }

  .news_section .news-all-link-large .font-medium {
    margin-top: auto;
    margin-bottom: 10px;
  }

  .news_section .news-card-top {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
  }

  .news_section .marker.marker-card {
    width: 96px;
    height: auto;
    padding-top: 0;
    padding-right: 24px;
    flex: 0 0 auto;
  }

  .news_section .news-card-top .font-overline {
    margin-top: 0;
  }

  .news_section .news-card-cube {
    width: 58px;
    position: absolute;
    top: 38px;
    right: 16px;
  }

  .news_section .news-card-cube .chronicle-image {
    width: 100%;
    display: block;
  }

  .news_section .font-medium {
    margin-top: 8px;
    margin-bottom: 0;
    font-size: 2.4rem;
    line-height: 112%;
    text-align: left;
  }

  .news_section .btn-arrow {
    position: absolute;
    right: 16px;
    bottom: 14px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    margin-top: 0;
    margin-left: 0;
    height: auto;
    padding: 0;
    background-color: transparent;
  }

  .nav_section .content-split.bkg {
    background-color: #2a2a2a;
    border: 1px solid rgba(211, 213, 206, 0.9);
    border-radius: 16px;
    margin-left: 48px;
    margin-right: 48px;
    height: 320px;
    overflow: hidden;
  }

  .nav_section .content-split.bkg .font-medium {
    font-size: 2.75rem;
    line-height: 115%;
    margin-top: 40px;
  }
}

/* ===== Mobile Responsive: Footer Contact Section ===== */
@media screen and (max-width: 991px) {
  .strategies-grid {
    padding: 0 96px;
  }

  .bio-overlay {
    padding: 16px;
  }

  .bio-overlay .bio-container {
    width: min(100%, 320px);
  }

  .bio-overlay .font-paragraph {
    font-size: 0.9rem;
  }

  .footer-addresses {
    flex-direction: column;
    gap: 24px;
  }
}

@media screen and (max-width: 767px) {
  .strategies-grid {
    grid-template-columns: 1fr;
    padding: 0 64px;
  }

  .footer .xlarge-content-container {
    max-width: 100%;
  }

  .footer .btn-social {
    margin-bottom: 8px;
  }

  .footer-addresses {
    flex-direction: column;
    gap: 20px;
  }
}

@media screen and (max-width: 479px) {
  .strategies-grid {
    grid-template-columns: 1fr;
    padding: 0 40px;
    gap: 16px;
  }

  .strategy-card {
    padding: 32px 24px;
  }

  .strategy-card-title {
    font-size: 1rem;
  }

  .footer .xlarge-content-container {
    max-width: 100%;
  }

  .footer .btn-social {
    margin-bottom: 8px;
    margin-right: 8px;
  }

  .portfolio-placeholder {
    width: 45%;
    height: auto;
    aspect-ratio: 1;
  }

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

  .team-photo-placeholder {
    aspect-ratio: auto;
    height: 200px;
  }

  .bio-overlay {
    padding: 12px;
  }

  .bio-overlay .bio-container {
    width: 100%;
    max-height: 100%;
  }

  .bio-overlay .bio-overlay-title .font-name {
    font-size: 1.6rem;
  }

  .bio-overlay .font-paragraph {
    font-size: 0.85rem;
  }
}

/* ===== X icon inline SVG fallback ===== */
.x-icon-svg {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  fill: var(--light-grey);
}

/* ===== Active nav link — rounded bottom arc ===== */
.btn-text.w--current {
  border-bottom: none;
  position: relative;
}

.btn-text.w--current::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 12px;
  border: 1px solid var(--light-grey);
  border-top: none;
  border-radius: 0 0 999px 999px;
}

