/* assets/css/home.css */

/* HERO */
.hero {
  padding-top: 72px;
}

.hero-inner {
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(28px, 4vw, 40px);
}

.hero-text p {
  font-size: 16px;
  max-width: 460px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-visual img {
  width: 100%;
  max-width: 480px;
  border-radius: 32px;
  box-shadow: var(--shadow-soft);
}

/* SUBHERO */
.subhero {
  padding-top: 32px;
}

.subhero-inner {
  background: linear-gradient(135deg, #0f172a, #022c3a);
  border-radius: 28px;
  padding: 32px 24px;
  color: #e5e7eb;
  box-shadow: var(--shadow-soft);
}

.subhero-text h2 {
  color: #f9fafb;
  margin-bottom: 8px;
}

.subhero-text p {
  color: #cbd5f5;
  max-width: 520px;
}

.subhero .btn-secondary {
  margin-top: 16px;
}

/* FUNNEL */
.funnel .section-intro {
  margin-bottom: 32px;
}

.funnel-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.funnel-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 20px 20px 24px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.funnel-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.funnel-card p {
  font-size: 14px;
  margin-bottom: 16px;
}

/* MINI WORKFLOW PREVIEW */

.workflow-preview {
  padding: 72px 0 64px;
  background-color: #ffffff;
}

.workflow-preview h2 {
  text-align: center;
}

.workflow-steps {
  margin-top: 32px;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  position: relative;
}

/* Timeline çizgisi (desktop) */
.workflow-steps::before {
  content: "";
  position: absolute;
  top: 26px; /* numara merkezine yakın */
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(
    to right,
    rgba(15, 118, 110, 0.15),
    rgba(15, 118, 110, 0.4),
    rgba(15, 118, 110, 0.15)
  );
  z-index: 1;
}

.workflow-step {
  background-color: #f9fafb;
  border-radius: 22px;
  padding: 20px 18px 22px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  position: relative;
  z-index: 2;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.workflow-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
  background-color: #ffffff;
}

/* Step number badge */

.workflow-step-header {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  margin-bottom: 10px;
}

.workflow-step-number {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid rgba(15, 118, 110, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary-dark);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

/* Step image */

.workflow-step-image {
  width: 100%;
  height: 120px;
  object-fit: contain;
  border-radius: 16px;
  margin-bottom: 12px;
  background-color: #e5e7eb;
}

/* Typography */

.workflow-step h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.workflow-step p {
  font-size: 14px;
  color: var(--color-muted);
}

.workflow-cta {
  display: inline-flex;
  margin-top: 28px;
}

/* Responsive */

@media (max-width: 1024px) {
  .workflow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-steps::before {
    left: 5%;
    right: 5%;
  }
}

@media (max-width: 640px) {
  .workflow-preview {
    padding: 56px 0 40px;
  }

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

  .workflow-steps::before {
    display: none; /* mobilde timeline çizgisi kalksın */
  }

  .workflow-step {
    align-items: flex-start;
  }
}

/* TESTIMONIALS PREVIEW */
.testimonials-preview .testimonials-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 32px 0 24px;
}

.testimonial {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  font-size: 14px;
}

.testimonial .author {
  margin-top: 12px;
  color: var(--color-muted);
}

/* FINAL CTA */
.final-cta {
  background: radial-gradient(circle at top left, #0ea5e9 0, #0369a1 40%, #020617 100%);
  color: #e5e7eb;
}

.final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.final-cta h2 {
  color: #f9fafb;
}

.final-cta p {
  color: #d1d5db;
}

.final-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* TESTIMONIALS PREVIEW SECTION */
.testimonials-preview {
  position: relative;
  padding: 72px 0;
  background: url("/assets/img/home/testimonials-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 24px;
  overflow: hidden;
}

.testimonials-preview .container {
  position: relative;
  z-index: 2;
}

.testimonials-preview::before {
  /* hafif karartma – okuması daha kolay olur */
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6); /* çok hafif beyaz overlay */
  backdrop-filter: blur(4px);
  z-index: 1;
}

/* Testimonials grid */
.testimonials-grid {
  display: grid;
  gap: 24px;
  margin: 24px 0 32px;
}

.testimonial {
  background: white;
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: var(--shadow-soft);
  font-size: 15px;
}

.testimonial .author {
  margin-top: 10px;
  color: var(--color-muted);
  font-size: 13px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    text-align: center;
  }

  .funnel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-preview .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .testimonials-preview .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .final-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .funnel-grid,
  .workflow-preview .steps,
  .testimonials-preview .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .subhero-inner {
    padding: 24px 18px;
  }
}

/* TENDER FUNNEL SECTION */

.funnel {
  padding: 72px 0 56px;
  background-color: #f9fafb;
}

.funnel .section-intro {
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
}

.funnel-grid {
  margin-top: 32px;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.funnel-card {
  background-color: #ffffff;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  padding: 20px 18px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.funnel-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.funnel-card-icon {
  width: 100%;
  margin-bottom: 12px;
  object-fit: contain;
  border-radius: 16px;
  background-color: #f1f5f9;
  padding: 8px;
}

.funnel-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.funnel-card p {
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 14px;
}

.funnel-card .btn {
  margin-top: auto;
  font-size: 13px;
}

/* Responsive kırılımlar */

@media (max-width: 1024px) {
  .funnel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .funnel {
    padding: 56px 0 40px;
  }

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

  .funnel-card {
    align-items: flex-start;
  }
}

/* PURE WHITE BUTTON */
.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 24px;
  background-color: #ffffff;
  color: var(--color-text, #1a1f2b);
  font-weight: 500;
  font-size: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: all 0.18s ease;
  text-decoration: none;
  cursor: pointer;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
}

.btn-white:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}