/* =============================================================================
   TRAFFIC PLAN — Metoda de Lucru CSS
   Mobile-first | BEM (.tp-method-*) | CSS Custom Properties
   ============================================================================= */

/* ─── Hero mic ─────────────────────────────────────────────────────────────── */
.tp-method-hero {
  position: relative;
  background-color: var(--tp-green-500);
  padding: 80px 0 64px;
  overflow: hidden;
}

.tp-method-hero__road {
  position: absolute;
  right: 7%;
  top: 0;
  bottom: 0;
  width: 36px;
  background-color: rgba(255,255,255,0.05);
  z-index: 0;
}

.tp-method-hero__road::before,
.tp-method-hero__road::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background-color: rgba(255,255,255,0.25);
  border-radius: 2px;
}

.tp-method-hero__road::before { top: 8%;  height: 28%; }
.tp-method-hero__road::after  { top: 52%; height: 28%; }

.tp-method-hero .container { position: relative; z-index: 1; }

/* Breadcrumbs */
.tp-method-hero__breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.tp-method-hero__breadcrumbs li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
}

.tp-method-hero__breadcrumbs li a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}

.tp-method-hero__breadcrumbs li a:hover { color: var(--tp-white); }
.tp-method-hero__breadcrumbs li[aria-hidden] { color: rgba(255,255,255,0.35); }
.tp-method-hero__breadcrumbs li[aria-current] { color: var(--tp-white); font-weight: 700; }

/* Titlu + subtitlu */
.tp-method-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  color: var(--tp-white);
  line-height: 1.12;
  margin: 0 0 16px;
}

.tp-method-hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  line-height: 1.6;
  margin: 0;
}

@media (min-width: 768px) {
  .tp-method-hero { padding: 100px 0 80px; }
}

/* ─── Intro ────────────────────────────────────────────────────────────────── */
.tp-method-intro {
  padding: 80px 0 72px;
  background-color: var(--tp-white);
}

.tp-method-intro__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .tp-method-intro__grid {
    grid-template-columns: 1fr 340px;
    gap: 64px;
  }
}

.tp-method-intro__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--tp-gray-900);
  margin: 8px 0 20px;
  line-height: 1.2;
}

.tp-method-intro__lead {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--tp-gray-700);
  margin-bottom: 16px;
}

.tp-method-intro__body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--tp-gray-500);
  margin: 0;
}

/* ─── Overview vizual (6 noduri) ────────────────────────────────────────────── */
.tp-method-overview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 24px 0;
}

.tp-method-overview__node {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.tp-method-overview__dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--tp-green-500);
  border: 3px solid var(--tp-white);
  box-shadow: 0 0 0 2px var(--tp-green-500);
  flex-shrink: 0;
}

.tp-method-overview__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--tp-navy-800);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.tp-method-overview__line {
  width: 3px;
  height: 32px;
  background: linear-gradient(to bottom, var(--tp-green-500), var(--tp-green-400));
  margin-left: 8px; /* aliniază cu centrul dot-ului */
  border-radius: 2px;
}

/* ─── Timeline — Etape ─────────────────────────────────────────────────────── */
.tp-method-timeline {
  padding: 24px 0 80px;
  background-color: var(--tp-gray-50);
}

/* ── Mobile: timeline stânga, card dreapta ─────────────────────────────────── */
.tp-method-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-areas:
    "node card"
    "conn spacer";
  gap: 0 20px;
  margin-bottom: 0;
}

.tp-method-step__card   { grid-area: card; }
.tp-method-step__node   { grid-area: node; }
.tp-method-step__spacer { display: none; }

/* ── Desktop: zig-zag — 3 coloane ─────────────────────────────────────────── */
@media (min-width: 1024px) {
  .tp-method-step {
    grid-template-columns: 1fr 80px 1fr;
    grid-template-areas: "card node spacer";
    gap: 0 0;
    align-items: start;
    margin-bottom: 0;
  }

  /* Etape impare (1,3,5) → conținut dreapta */
  .tp-method-step--right {
    grid-template-areas: "spacer node card";
  }

  .tp-method-step__spacer { display: block; }
}

/* ── Cardul de conținut ────────────────────────────────────────────────────── */
.tp-method-step__card {
  background-color: var(--tp-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  border: 1px solid var(--tp-gray-100);
  transition: box-shadow 0.25s, border-color 0.25s;
  margin-bottom: 0;
  position: relative;
  /* Padding top mai mic pe mobile — numărul e în card */
}

.tp-method-step__card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--tp-green-100);
}

/* Numărul mare portocaliu */
.tp-method-step__num {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  color: var(--tp-orange-500);
  opacity: 0.8;
  line-height: 1;
  margin-bottom: 4px;
  display: block;
}

/* Tag mic (Kickoff, Teren etc.) */
.tp-method-step__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tp-green-500);
  background-color: var(--tp-green-100);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

/* Titlu etapă */
.tp-method-step__title {
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 700;
  color: var(--tp-navy-900);
  margin: 0 0 12px;
  line-height: 1.3;
}

/* Descriere */
.tp-method-step__desc {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--tp-gray-700);
  margin-bottom: 16px;
}

/* Lista de sub-puncte */
.tp-method-step__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tp-method-step__list li {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--tp-gray-700);
  padding: 5px 0 5px 20px;
  position: relative;
  border-bottom: 1px solid var(--tp-gray-50);
}

.tp-method-step__list li:last-child {
  border-bottom: none;
}

.tp-method-step__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--tp-green-500);
}

/* ── Nodul de timeline ─────────────────────────────────────────────────────── */
.tp-method-step__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.tp-method-step__node-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--tp-green-500);
  border: 3px solid var(--tp-white);
  box-shadow: 0 0 0 3px var(--tp-green-500);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
  position: relative;
  margin-top: 32px; /* aliniază cu titlul cardului */
}

@media (min-width: 1024px) {
  .tp-method-step__node-dot {
    width: 48px;
    height: 48px;
    margin-top: 40px;
  }
}

.tp-method-step__node-dot span {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--tp-white);
  line-height: 1;
}

/* Conectorul vertical între noduri */
.tp-method-step__connector {
  width: 3px;
  background: linear-gradient(to bottom, var(--tp-green-500), var(--tp-green-400));
  border-radius: 2px;
  flex: 1;
  min-height: 32px;
}

/* Spațier (zig-zag) — empty pe mobile */
.tp-method-step__spacer {
  background: transparent;
}

/* ── Înălțimea conectorului = înălțimea cardului următor ───────────────────── */
/* Cardul + padding în grid */
@media (min-width: 1024px) {
  .tp-method-step {
    min-height: 220px;
  }
}

/* ── Animație tp-animate ───────────────────────────────────────────────────── */
.tp-method-step.tp-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.tp-method-step.tp-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delay staggered pentru fiecare etapă */
.tp-method-step:nth-child(1) { transition-delay: 0ms;   }
.tp-method-step:nth-child(2) { transition-delay: 80ms;  }
.tp-method-step:nth-child(3) { transition-delay: 160ms; }
.tp-method-step:nth-child(4) { transition-delay: 240ms; }
.tp-method-step:nth-child(5) { transition-delay: 320ms; }
.tp-method-step:nth-child(6) { transition-delay: 400ms; }

/* ─── Beneficii — Verde cu carduri navy ────────────────────────────────────── */
.tp-method-benefits {
  position: relative;
  background-color: var(--tp-green-500);
  padding: 80px 0 88px;
  overflow: hidden;
}

.tp-method-benefits__road {
  position: absolute;
  right: 7%;
  top: 0;
  bottom: 0;
  width: 36px;
  background-color: rgba(255,255,255,0.04);
  z-index: 0;
}

.tp-method-benefits__road::before,
.tp-method-benefits__road::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background-color: rgba(255,255,255,0.2);
  border-radius: 2px;
}

.tp-method-benefits__road::before { top: 8%;  height: 30%; }
.tp-method-benefits__road::after  { top: 55%; height: 30%; }

.tp-method-benefits .container { position: relative; z-index: 1; }

.tp-method-benefits__header {
  text-align: center;
  margin-bottom: 48px;
}

.tp-method-benefits__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--tp-white);
  margin: 8px 0 0;
  line-height: 1.2;
}

/* Grid 4 carduri */
.tp-method-benefits__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .tp-method-benefits__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .tp-method-benefits__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Card beneficiu — navy dark */
.tp-method-benefit-card {
  background-color: var(--tp-navy-800);
  border: 1px solid var(--tp-navy-600);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: background-color 0.2s, transform 0.2s;
}

.tp-method-benefit-card:hover {
  background-color: var(--tp-navy-700);
  transform: translateY(-2px);
}

.tp-method-benefit-card__icon {
  width: 44px;
  height: 44px;
  background-color: rgba(46,196,182,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.tp-method-benefit-card__icon svg {
  width: 22px;
  height: 22px;
  color: var(--tp-teal-500);
}

.tp-method-benefit-card__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--tp-white);
  margin: 0 0 10px;
  line-height: 1.3;
}

.tp-method-benefit-card__desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.72);
  margin: 0;
}

/* ─── Mobile — ajustări timeline ───────────────────────────────────────────── */
@media (max-width: 767px) {
  .tp-method-hero { padding: 56px 0 48px; }
  .tp-method-intro { padding: 56px 0 48px; }
  .tp-method-timeline { padding: 16px 0 64px; }

  .tp-method-step__card {
    padding: 24px 20px;
  }

  .tp-method-step__num {
    font-size: 2.25rem;
  }

  .tp-method-step__node-dot {
    width: 32px;
    height: 32px;
    margin-top: 24px;
  }

  .tp-method-step__node-dot span {
    font-size: 0.5625rem;
  }

  .tp-method-benefits { padding: 56px 0 64px; }

  .tp-method-benefits__grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Override GeneratePress sidebar ───────────────────────────────────────── */
.tp-method-page .sidebar-container,
.tp-method-page .widget-area,
.tp-method-page #secondary {
  display: none !important;
}

.tp-method-page .content-area,
.tp-method-page #primary {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}
