/* ===== Hero Section (old/black theme), scoped under -old classes ===== */
/* Kept separate from style.css so it doesn't inherit the light-theme .td-hero rules. */

.td-hero-old {
  position: relative;
  margin: 20px;
  height: calc(100vh - 40px);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-color: #000000;
}

.td-hero-old-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(circle at 60% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(circle at 60% 50%, #000 55%, transparent 100%);
}

.td-hero-old-lines-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background-image:
    linear-gradient(90deg, rgba(183, 37, 88, 0.9) 1px, transparent 1px),
    linear-gradient(0deg, rgba(183, 37, 88, 0.9) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* -- Left edge: vertical scrolling services marquee -- */
.td-hero-old-marquee {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 62px;
  z-index: 3;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.6);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.td-hero-old-marquee-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  width: 100%;
  padding: 30px 0;
  animation: tdHeroOldMarqueeScroll 18s linear infinite;
}

.td-hero-old-marquee-item {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--td-white);
}

.td-hero-old-marquee-dot {
  color: var(--td-pink);
  font-size: 16px;
  flex: 0 0 auto;
}

@keyframes tdHeroOldMarqueeScroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

/* -- Top bar -- */
.td-hero-old-topbar {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 28px 40px 0;
}

.td-hero-old-badge {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--td-grey);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 50px;
  white-space: nowrap;
}

.td-hero-old-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ecc71;
}

.td-hero-old-topbar-right {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 20px;
}

.td-hero-old-topbar-right .td-btn {
  background-color: #000000;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.td-hero-old-topbar-right .td-btn:hover {
  background-color: var(--td-white);
  color: var(--td-black);
}

/* -- Main grid -- */
.td-hero-old-main {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 10px 44px 34px 102px;
}

/* -- Left column: copy -- */
.td-hero-old-left {
  position: relative;
  z-index: 3;
  flex: 0 0 87%;
  max-width: 584px;
}

.td-hero-old-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(68px, 6.4vw, 106px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--td-white);
  margin: 0 0 18px;
  white-space: nowrap;
}

.td-hero-old-title-accent {
  color: var(--td-pink);
}

.td-hero-old-title-swoosh {
  display: block;
  width: 140px;
  height: auto;
  margin-top: 4px;
  opacity: 0.7;
}

.td-hero-old-desc {
  font-size: 19px;
  line-height: 1.7;
  color: rgba(231, 237, 237, 0.72);
  max-width: 460px;
  margin: 0 0 20px;
}

.td-hero-old-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-bottom: 22px;
}

.td-hero-old-features span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--td-grey);
}

.td-hero-old-features svg {
  flex: 0 0 auto;
  color: var(--td-white);
}

/* -- Right side: circular social media badge, half-cropped off the hero edge -- */
.td-hero-old-social {
  position: absolute;
  right: -185px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 450px;
  height: 450px;
  pointer-events: none;
}

.td-hero-old-social-border {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  animation: tdOldSocialOrbit 9s linear infinite;
}

.td-hero-old-social-dot {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--td-pink);
  transform: translateX(-50%);
  box-shadow: 0 0 20px 6px rgba(183, 37, 88, 0.7);
}

@keyframes tdOldSocialOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.td-hero-old-social-ring {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.td-hero-old-social-ring::before {
  content: "";
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  border: 54px solid var(--td-pink);
}

.td-hero-old-social-link {
  --r: 172px;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  margin: -28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  color: var(--td-white);
  pointer-events: auto;
  transform: rotate(calc(var(--a) - 90deg)) translate(var(--r)) rotate(calc(-1 * (var(--a) - 90deg)));
  transition: opacity 0.25s ease;
}

.td-hero-old-social-link svg {
  width: 30px;
  height: 30px;
}

.td-hero-old-social-link[aria-label="WhatsApp"] svg { width: 34px; height: 34px; }
.td-hero-old-social-link[aria-label="X (Twitter)"] svg { width: 34px; height: 34px; }
.td-hero-old-social-link[aria-label="LinkedIn"] svg { width: 29px; height: 29px; }
.td-hero-old-social-link[aria-label="Instagram"] svg { width: 30px; height: 30px; }
.td-hero-old-social-link[aria-label="Facebook"] svg { width: 26px; height: 26px; }

.td-hero-old-social-link:hover {
  opacity: 0.55;
}

/* -- Guarantee badge -- */
.td-hero-old-guarantee {
  position: absolute;
  right: 40px;
  bottom: 26px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Poppins", serif;
  font-style: italic;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
  color: var(--td-grey);
  text-align: right;
}

@media (max-width: 991px) {
  .td-hero-old { height: auto; min-height: calc(100vh - 40px); }
  .td-hero-old-marquee { display: none; }
  .td-hero-old-main {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 32px;
  }
  .td-hero-old-left {
    flex: 0 0 auto;
    max-width: 100%;
  }
  .td-hero-old-social {
    position: static;
    transform: none;
    width: auto;
    height: auto;
    order: -1;
    margin-bottom: 20px;
  }
  .td-hero-old-social-border { display: none; }
  .td-hero-old-social-ring {
    display: flex;
    gap: 10px;
  }
  .td-hero-old-social-ring::before { display: none; }
  .td-hero-old-social-link {
    position: static;
    width: 40px;
    height: 40px;
    margin: 0;
    transform: none !important;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--td-white);
  }
  .td-hero-old-guarantee {
    position: relative;
    right: auto;
    bottom: auto;
    text-align: left;
    margin-top: 18px;
  }
}

@media (max-width: 767px) {
  .td-hero-old { margin: 10px; }
  .td-hero-old-topbar { padding: 20px 20px 0; gap: 10px; }
  .td-hero-old-badge { display: none; }
  .td-hero-old-main { padding: 16px 20px 28px; }
  .td-hero-old-title { font-size: 26px; white-space: normal; }
}
