/* ============================================================
   CONTABIL-STARTUP.RO — home.css
   Stiluri specifice Homepage
   ============================================================ */

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--grad-primary);
  padding: var(--sp-24) 0 var(--sp-20);
  position: relative;
  overflow: hidden;
}

/* Decoratiuni fundal */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  width: 500px; height: 500px;
  top: -150px; right: -100px;
  background: rgba(255,255,255,.04);
}
.hero::after {
  width: 300px; height: 300px;
  bottom: -80px; left: -60px;
  background: rgba(255,255,255,.03);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--clr-white);
  line-height: 1.1;
  margin-bottom: var(--sp-6);
}
.hero-title span { color: var(--clr-accent-light); }

.hero-subtitle {
  font-size: var(--text-lg);
  color: rgba(255,255,255,.85);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: var(--sp-4);
}
.hero-subtitle strong {
  font-weight: 700;
  color: var(--clr-white);
}

.hero-subtitle-secondary {
  font-size: var(--text-lg);
  color: rgba(255,255,255,.7);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: var(--sp-8);
  font-style: italic;
}

.hero-actions {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

/* Hero bullets under CTA */
.hero-bullets {
  list-style: none;
  padding: 0;
  margin: var(--sp-6) 0 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.hero-bullets li {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.65);
  padding-left: 1.25rem;
  position: relative;
}
.hero-bullets li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: rgba(255,255,255,.5);
  font-size: var(--text-base);
  line-height: 1.5;
}

/* Hero image (dreapta) */
.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image img {
  width: 100%;
  max-width: 580px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,.25));
}

/* ============================================================
   ETAPE BUSINESS
   ============================================================ */
.etape-section { background: var(--clr-white); }

.etape-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.etapa-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8) var(--sp-6);
  padding-top: calc(var(--sp-8) + 4px);
  transition: var(--t);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(30,58,95,.04);
}
.etapa-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--etapa-accent, var(--clr-primary));
  transition: var(--t);
}
.etapa-card:hover {
  border-color: var(--etapa-accent, var(--clr-primary-light));
  box-shadow: 0 18px 40px -16px rgba(30,58,95,.18), 0 4px 12px rgba(30,58,95,.06);
  transform: translateY(-6px);
}
.etapa-card--green  { --etapa-accent: var(--clr-accent); }
.etapa-card--blue   { --etapa-accent: var(--clr-primary); }
.etapa-card--orange { --etapa-accent: var(--clr-cta); }

.etapa-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-1);
}
.etapa-num {
  font-family: inherit;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  color: var(--etapa-accent, var(--clr-primary));
  opacity: .35;
  letter-spacing: -.02em;
}

.etapa-pill {
  display: inline-flex;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  align-self: flex-start;
}
.etapa-pill.green  { background: var(--clr-accent-bg);   color: var(--clr-accent); }
.etapa-pill.blue   { background: rgba(30,58,95,.1);       color: var(--clr-primary); }
.etapa-pill.orange { background: var(--clr-cta-bg);       color: var(--clr-cta); }

.etapa-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--clr-primary);
  line-height: 1.3;
}

.etapa-desc {
  font-size: var(--text-sm);
  color: var(--clr-text-light);
  line-height: 1.65;
  flex: 1;
}

.etapa-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--etapa-accent, var(--clr-primary));
  margin-top: var(--sp-2);
  transition: var(--t-fast);
}
.etapa-link::after { content: '→'; transition: var(--t-fast); }
.etapa-card:hover .etapa-link::after { transform: translateX(4px); }

/* ============================================================
   CUM LUCRAM
   ============================================================ */
.cum-lucram-section { background: var(--clr-bg-alt); }

.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
  position: relative;
}

/* Linie orizontală între pași */
.steps-row::before {
  content: '';
  position: absolute;
  top: 27px;
  left: calc(12.5% + 8px);
  right: calc(12.5% + 8px);
  height: 2px;
  background: linear-gradient(to right, var(--clr-accent), var(--clr-primary));
  opacity: .25;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 54px; height: 54px;
  border-radius: var(--radius-full);
  background: var(--grad-primary);
  color: var(--clr-white);
  font-size: var(--text-xl);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-5);
  box-shadow: 0 4px 16px rgba(30,58,95,.25);
}
.step-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--clr-primary);
  margin-bottom: var(--sp-2);
}
.step-desc {
  font-size: var(--text-sm);
  color: var(--clr-text-light);
  line-height: 1.6;
}

/* ============================================================
   PACHETE SERVICII
   ============================================================ */
.pachete-section { background: var(--clr-bg-alt); }

.pachete-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  align-items: start;
}

.pachet-card {
  background: var(--clr-bg);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  border: 2px solid var(--clr-border);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  transition: var(--t);
  position: relative;
}
.pachet-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.pachet-card.featured {
  background: var(--grad-primary);
  border-color: transparent;
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}
.pachet-card.featured:hover { transform: scale(1.02) translateY(-4px); }

.pachet-badge {
  position: absolute;
  top: -13px;
  left: 50%; transform: translateX(-50%);
  background: var(--clr-cta);
  color: var(--clr-white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}

.pachet-name {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--clr-primary);
}
.pachet-card.featured .pachet-name { color: var(--clr-white); }

.pachet-price {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--clr-primary);
  line-height: 1;
}
.pachet-card.featured .pachet-price { color: var(--clr-white); }

.pachet-period {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--clr-text-light);
}
.pachet-card.featured .pachet-period { color: rgba(255,255,255,.7); }

.pachet-divider {
  border: none;
  border-top: 1px solid var(--clr-border);
  margin: var(--sp-2) 0;
}
.pachet-card.featured .pachet-divider { border-color: rgba(255,255,255,.2); }

.pachet-features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  flex: 1;
}
.pachet-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--clr-text);
  line-height: 1.5;
}
.pachet-feature::before {
  content: "✓";
  color: var(--clr-accent);
  font-weight: 800;
  flex-shrink: 0;
}
.pachet-card.featured .pachet-feature { color: rgba(255,255,255,.9); }
.pachet-card.featured .pachet-feature::before { color: var(--clr-accent-light); }

.pachet-cta-wrap { margin-top: var(--sp-4); }
.pachet-cta-wrap .btn { width: 100%; }

.pachet-desc {
  font-size: var(--text-sm);
  color: var(--clr-text-light);
  line-height: 1.5;
}
.pachet-fit {
  font-size: var(--text-xs);
  color: var(--clr-text-light);
  font-style: italic;
  margin-top: var(--sp-1);
}

/* ============================================================
   RESURSE PREVIEW
   ============================================================ */
.resurse-preview-section { background: var(--clr-bg-alt); }

.resurse-preview-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}

.resurse-preview-text .section-label { margin-bottom: var(--sp-3); }
.resurse-preview-text .section-title { text-align: left; margin-bottom: var(--sp-5); }

.resurse-preview-desc {
  color: var(--clr-text-light);
  line-height: 1.8;
  margin-bottom: var(--sp-6);
  max-width: 540px;
}

.resurse-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
}
.resurse-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--clr-primary);
  transition: var(--t-fast);
}
.resurse-tag:hover {
  border-color: var(--clr-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30,58,95,.08);
}
.rt-hash { color: var(--clr-accent); font-weight: 700; }

.resurse-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

/* Visual: mockup carduri */
.resurse-preview-visual {
  position: relative;
  height: 380px;
  width: 100%;
  max-width: 560px;
  margin-left: auto;
}
.rp-card {
  position: absolute;
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: var(--sp-5) var(--sp-6);
  box-shadow: 0 18px 48px -16px rgba(30,58,95,.18), 0 4px 12px rgba(30,58,95,.06);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: var(--t);
}
.rp-card:hover { box-shadow: 0 26px 60px -16px rgba(30,58,95,.22), 0 6px 16px rgba(30,58,95,.08); }
.rp-card-1 { top: 0;     right: 0;    width: 85%; transform: rotate(-3deg); z-index: 2; }
.rp-card-2 { top: 140px; right: 0;   width: 55%; transform: rotate(4deg);  z-index: 1; opacity: .55; }
.rp-card-3 { bottom: 0;  right: 0;   width: 72%; transform: rotate(1deg);  z-index: 3; }
.rp-card-1:hover { transform: rotate(-3deg) translateY(-4px); }
.rp-card-2:hover { transform: rotate(4deg) translateY(-4px); }
.rp-card-3:hover { transform: rotate(1deg) translateY(-4px); }

.rp-card-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 6px 12px;
  background: var(--clr-bg-alt);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--clr-primary);
  white-space: nowrap;
}
.rp-line {
  display: block;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #E4EAF2 0%, #EEF2F7 100%);
}
.rp-line.short { width: 60%; }

/* ============================================================
   DESPRE NOI PREVIEW
   ============================================================ */
.despre-preview-section { background: var(--clr-white); }

.despre-preview-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-20);
  align-items: center;
}

.despre-values {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  margin-top: var(--sp-8);
}
.value-row {
  display: flex;
  gap: var(--sp-5);
  align-items: flex-start;
}
.value-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: rgba(30,58,95,.08);
  color: #6b7d8e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.value-text h4 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--clr-primary);
  margin-bottom: var(--sp-1);
}
.value-text p {
  font-size: var(--text-sm);
  color: var(--clr-text-light);
  line-height: 1.6;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
}
.stat-box {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--t);
}
.stat-box:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.stat-num {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--clr-primary);
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.stat-label {
  font-size: var(--text-sm);
  color: var(--clr-text-light);
  line-height: 1.4;
}

.cu-cine-card {
  margin-top: var(--sp-6);
  background: var(--grad-primary);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
}
.cu-cine-card h4 {
  color: var(--clr-white);
  font-size: var(--text-base);
  margin-bottom: var(--sp-4);
}
.cu-cine-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.cu-cine-list li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  color: rgba(255,255,255,.85);
}
.cu-cine-list li::before {
  content: "✓";
  color: var(--clr-accent-light);
  font-weight: 800;
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-final-section {
  background: var(--grad-primary);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(255,255,255,.06) 0%, transparent 65%);
  pointer-events: none;
}
.cta-final-inner { position: relative; z-index: 1; }

.cta-final-title {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--clr-white);
  margin-bottom: var(--sp-4);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.cta-final-subtitle {
  font-size: var(--text-lg);
  color: rgba(255,255,255,.8);
  margin-bottom: var(--sp-8);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

.cta-check-row {
  display: flex;
  justify-content: center;
  gap: var(--sp-10);
  margin-bottom: var(--sp-8);
  flex-wrap: wrap;
}
.cta-check-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-base);
  font-weight: 500;
  color: rgba(255,255,255,.9);
}
.cta-check-item::before {
  content: "✓";
  color: var(--clr-accent-light);
  font-weight: 800;
  font-size: var(--text-lg);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

/* ============================================================
   REVIEWS / TESTIMONIALS  —  marquee slider
   ============================================================ */
.reviews-section {
  background: var(--clr-white);
  overflow: hidden;
}

/* marquee wrapper — full width, hides overflow */
.reviews-marquee {
  overflow: hidden;
  width: 100%;
  padding: var(--sp-4) 0 var(--sp-6);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

/* the sliding track — flex row, animated */
.reviews-track {
  display: flex;
  gap: var(--sp-6);
  width: max-content;
  animation: reviewsScroll 40s linear infinite;
}
.reviews-marquee:hover .reviews-track {
  animation-play-state: paused;
}

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

.review-card {
  background: #fff;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg, 16px);
  padding: 1.5rem;
  box-shadow: 0 4px 18px rgba(30, 58, 95, .08);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  min-width: 360px;
  max-width: 400px;
  flex-shrink: 0;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.review-card:hover {
  box-shadow: 0 12px 32px rgba(30, 58, 95, .14);
  transform: translateY(-3px);
  border-color: rgba(30, 58, 95, .15);
}
.review-header {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-base);
  color: #fff;
  flex-shrink: 0;
  letter-spacing: .5px;
}
.review-meta {
  display: flex;
  flex-direction: column;
}
.review-name {
  font-weight: 700;
  color: var(--clr-heading);
  font-size: var(--text-base);
}
.review-date {
  font-size: var(--text-sm);
  color: var(--clr-text-light);
}
.review-stars {
  display: flex;
  gap: 2px;
  color: #f5a623;
  font-size: 16px;
  line-height: 1;
}
.review-stars svg {
  width: 18px;
  height: 18px;
  fill: #f5a623;
}
.review-text {
  color: var(--clr-text-light);
  line-height: 1.75;
  font-size: var(--text-base);
  flex-grow: 1;
}

/* ============================================================
   RESPONSIVE HOME
   ============================================================ */
@media (max-width: 1024px) {
  .steps-row { grid-template-columns: 1fr 1fr; }
  .steps-row::before { display: none; }
  .etape-grid { gap: var(--sp-5); }
  .resurse-preview-inner { gap: var(--sp-10); }
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }
  .hero-title { font-size: var(--text-4xl); }
  .hero-subtitle,
  .hero-subtitle-secondary { max-width: 100%; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-image { max-width: 400px; margin: 0 auto; }

  .etape-grid { grid-template-columns: 1fr; }

  .resurse-preview-inner { grid-template-columns: 1fr; gap: var(--sp-10); }
  .resurse-preview-visual { min-height: 380px; max-width: 420px; margin: 0 auto; width: 100%; }
  .resurse-preview-actions { flex-direction: column; align-items: stretch; }
  .resurse-preview-actions .btn { width: 100%; text-align: center; }

  .steps-row { grid-template-columns: 1fr 1fr; }

  .pachete-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
  .pachet-card.featured { transform: none; }
  .pachet-card.featured:hover { transform: translateY(-4px); }

  .despre-preview-inner { grid-template-columns: 1fr; gap: var(--sp-10); }

  .cta-final-title { font-size: var(--text-3xl); }
  .cta-check-row { flex-direction: column; align-items: center; gap: var(--sp-3); }
  .cta-buttons { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: var(--text-3xl); }
  .steps-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
