/* PWXTDCO-25: Hero Section & Navbar — all styles isolated here */

/* ── Logo Pill ── */
.logo-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #2D2D2D;
  border-radius: 50px;
  padding: 8px 16px;
  text-decoration: none;
}
.logo-td {
  color: #E5007D;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.logo-consultores {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ── Navbar: transparent on homepage ── */
body[data-path="/"] header {
  background: transparent;
  box-shadow: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}
body[data-path="/"] header .w {
  border-bottom: none;
}
body[data-path="/"] header nav a {
  color: #fff;
}
body[data-path="/"] header nav a:hover {
  color: rgba(255, 255, 255, 0.7);
  opacity: 1;
}
body[data-path="/"] header nav a.active {
  color: #fff;
}

/* Navbar scrolled → solid white */
body[data-path="/"] header.header-scrolled {
  background: #fff;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.07);
}
body[data-path="/"] header.header-scrolled nav a {
  color: #1B2A4A;
}
body[data-path="/"] header.header-scrolled nav a:hover {
  color: #F27B20;
}
body[data-path="/"] header.header-scrolled .nav-cta {
  background: #000;
  color: #fff;
}

/* ── CTA Button ── */
.nav-cta {
  background: #000 !important;
  color: #fff !important;
  border-radius: 50px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.nav-cta:hover {
  background: #222 !important;
  opacity: 1;
}

/* ── Hero Section ── */
.hero-new {
  position: relative;
  height: 100vh;
  display: grid;
  grid-template-columns: 40% 60%;
  overflow: hidden;
  background: #0F172A;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 60px 0 max(24px, calc((100vw - 1140px) / 2 + 24px));
  z-index: 2;
}

.hero-new h1 {
  font-size: 64px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin: 0 0 20px 0;
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin: 0 0 32px 0;
  max-width: 460px;
}

.hero-cta {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  align-self: flex-start;
  transition: background 0.2s, transform 0.2s;
}
.hero-cta:hover {
  background: #222;
  transform: translateY(-2px);
  color: #fff;
}

.hero-img {
  position: relative;
}
.hero-img-bg {
  position: absolute;
  inset: 0;
  background: url('/images/hero-bg.jpg') center / cover no-repeat;
}
.hero-img-overlay {
  position: absolute;
  inset: 0;
  background: #00000066;
}

/* ── Marquee / Partner Ticker ── */
.hero-marquee {
  background: #0F172A;
  padding: 40px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content;
  animation: marqueeScroll 20s linear infinite;
}

.marquee-item {
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-new {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
  }

  .hero-text {
    padding: 120px 24px 60px;
  }

  .hero-img {
    display: none;
  }

  .hero-new h1 {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  /* Mobile: restore nav background when menu is open */
  body[data-path="/"] header nav.active {
    background: #fff;
  }
  body[data-path="/"] header nav.active a {
    color: #1B2A4A;
  }
}

@media (max-width: 480px) {
  .hero-new h1 {
    font-size: 28px;
  }

  .hero-text {
    padding: 100px 20px 48px;
  }
}
