/**
 * Top Dog Choose Experience — front styles (scoped .tdce-*).
 */

.tdce-root *,
.tdce-root *::before,
.tdce-root *::after {
  box-sizing: border-box;
}

.tdce {
  padding: clamp(40px, 6vw, 64px) clamp(16px, 4vw, 24px);
  background: var(--tdce-navy, #0f1a2e);
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

.tdce__inner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}

/* Tab bar — standalone dark header box (not part of white card) */
.tdce__header-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 30px 0px 30px;
  margin-bottom: 0;
  border: 1px solid rgba(120, 140, 168, 0.42);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.015);
  max-width: 400px;
  margin: auto;
}

.tdce__heading {
  margin: 0 0 24px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
}

.tdce__tabs-shell {
  display: block;
  width: min(100%, 720px);
  padding: 5px;
  border-radius: 999px;
  border: 1px solid rgba(120, 140, 168, 0.5);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.tdce__tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  width: 100%;
  min-height: 50px;
}

.tdce__tab-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 0;
}

.tdce__tabs[data-active="projects"] .tdce__tab-thumb {
  transform: translateX(100%);
}

.tdce__tab {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 50px;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  padding: 14px 24px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: rgba(168, 182, 200, 0.92);
  cursor: pointer;
  white-space: nowrap;
  touch-action: manipulation;
  transition: color 0.28s ease;
}

.tdce__tab[aria-selected="true"] {
  color: var(--tdce-navy, #0f1a2e);
  font-weight: 700;
}

.tdce__tab[aria-selected="false"]:hover {
  color: rgba(196, 206, 220, 0.98);
}

.tdce__tab:focus-visible {
  outline: 2px solid var(--tdce-accent, #4a90e2);
  outline-offset: 3px;
}

.tdce__connector {
  display: block;
  width: 1px;
  height: clamp(32px, 4vw, 30px);
  margin-top: clamp(28px, 3.5vw, 5px);
  background: rgba(120, 140, 168, 0.42);
}

/* White content cards — separate block below tab bar */
.tdce__panels {
  position: relative;
  z-index: 1;
  margin-top: clamp(12px, 2vw, 20px);
}

.tdce-panel {
  display: none;
}

.tdce-panel--active {
  display: block;
  animation: tdce-panel-in 0.35s ease;
}

@keyframes tdce-panel-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tdce__card {
  background: var(--tdce-card, #fff);
  border-radius: 28px;
  padding: clamp(36px, 5vw, 56px) clamp(28px, 4.5vw, 56px) clamp(40px, 5vw, 56px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  margin-top: -31px;
}

.tdce__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.tdce__title {
  margin: 0 0 12px;
  font-family: "Bebas Neue", sans-serif;
  font-weight: 700;
  font-size: 42px;
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #004a7c;
}

.tdce__subtitle {
  margin: 0 0 clamp(24px, 3vw, 32px);
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.45;
  color: #64748b;
}

.tdce__list {
  margin: 0 0 clamp(32px, 4vw, 40px);
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tdce__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: "DM Sans", sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: #1b2e4b;
}

.tdce__check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: #1B2E4B;
  stroke-width: 1.8;
}

.tdce__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.tdce__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 13px clamp(22px, 3vw, 30px);
  border-radius: 999px;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(14px, 1.8vw, 16px);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.tdce__btn-text {
  line-height: 1.1;
}

.tdce__btn-arrow {
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: 15px;
}

.tdce__btn--primary {
  background: var(--tdce-navy, #0f1a2e);
  color: #fff;
  border-color: var(--tdce-navy, #0f1a2e);
}

.tdce__btn--primary:hover {
  background: #1b2e4b;
  border-color: #1b2e4b;
  color: #fff;
}

.tdce__btn--secondary {
  background: #fff;
  color: var(--tdce-navy, #0f1a2e);
  border-color: var(--tdce-navy, #0f1a2e);
}

.tdce__btn--secondary:hover {
  background: var(--tdce-navy, #0f1a2e);
  color: #fff;
}

.tdce__btn:focus-visible {
  outline: 2px solid var(--tdce-accent, #4a90e2);
  outline-offset: 3px;
}

.tdce__media {
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4 / 3.2;
  background: #e8ecf1;
}

.tdce__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tdce__media--placeholder {
  min-height: 300px;
  background: linear-gradient(145deg, #e4e9ef, #d8dee8);
}

@media (max-width: 960px) {
  .tdce__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .tdce__col--media {
    order: -1;
  }

  .tdce__tab {
    font-size: clamp(13px, 2.8vw, 15px);
    padding: 12px 14px;
  }

  .tdce__tabs-shell {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .tdce__header-card {
    border-radius: 20px;
    padding: 28px 20px 0;
  }

  .tdce__tab {
    white-space: normal;
    text-align: center;
  }

  .tdce__links {
    flex-direction: column;
    align-items: stretch;
  }

  .tdce__btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .tdce__card {
    border-radius: 20px;
    padding: 28px 20px 36px;
  }

  .tdce__media {
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tdce-panel--active {
    animation: none;
  }

  .tdce__tab-thumb {
    transition: none;
  }
}
