/* EXTENDS existing variables from styles.css */

/* Generic section wrapper */
.section {
  padding: 4rem 1.5rem;
  background-color: var(--secondary-bg);
}
.section:nth-of-type(even) {
  background-color: var(--primary-bg); /* subtle striping */
}
.section-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

/* Headings */
.section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.3rem;
  color: #f1d145;
  margin-bottom: 2.5rem;
}

/* ---------- VALUE PROPOSITION GRID ---------- */
.value-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.value-card {
  background: #0f0f0f;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 2rem 1.5rem;
}
.value-card h3 {
  color: #ffffff;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}
.value-card p {
  color: #d0d0d0;
  font-size: 0.98rem;
  line-height: 1.6;
}

/* ---------- INDUSTRY GRID ---------- */
.industry-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(140px,1fr));
  justify-items: center;
}
.industry-card {
  text-align: center;
}
.industry-card img {
  width: 64px;
  height: 64px;
  margin-bottom: 0.8rem;
  filter: brightness(0.9);
}
.industry-card h4 {
  font-size: 1rem;
  color: #e0e0e0;
}

/* ---------- CTA ---------- */
.section--cta {
  background: #121212;
}
.section--cta p {
  color: #d0d0d0;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* === Spotlight Grid Effect for Consulting Hero Section === */
.hero--consulting.hero-grid {
  position: relative;
  overflow: hidden;
  --mouse-x: 50%;
  --mouse-y: 50%;
  background-color: #000; /* optional, keeps grid visible on dark bg */
}

.hero--consulting.hero-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 40px 40px;
  background-color: transparent;
  -webkit-mask-image: radial-gradient(circle 160px at var(--mouse-x) var(--mouse-y), black 0%, transparent 100%);
  mask-image: radial-gradient(circle 160px at var(--mouse-x) var(--mouse-y), black 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 1;
}

.hero--consulting.hero-grid.active::before {
  opacity: 1;
}

/* === Spotlight Grid Effect for Any Section Using .hero-grid === */
.hero-grid {
  position: relative;
  overflow: hidden;
  --mouse-x: 50%;
  --mouse-y: 50%;
}

.hero-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 40px 40px;
  background-color: transparent;
  -webkit-mask-image: radial-gradient(circle 160px at var(--mouse-x) var(--mouse-y), black 0%, transparent 100%);
  mask-image: radial-gradient(circle 160px at var(--mouse-x) var(--mouse-y), black 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 1;
}

.hero-grid.active::before {
  opacity: 1;
}


.hero-grid .btn {
  margin-bottom: 20px;
}


/* ---------- TIMELINE CONTAINER ---------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: var(--underline-color);
  transform: translateX(-50%);
  z-index: 0;
}

/* ---------- TIMELINE ITEMS (DESKTOP) ---------- */
.timeline li {
  position: relative;
  width: 50%;
  padding: 3rem 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 1;
}

.timeline li:nth-child(odd) {
  align-items: flex-end;
  text-align: right;
  padding-right: 2.5rem;
}
.timeline li:nth-child(even) {
  left: 50%;
  align-items: flex-start;
  text-align: left;
  padding-left: 2.5rem;
}

/* ---------- STEP CIRCLE (INLINE ABOVE TEXT) ---------- */
.timeline-step {
  background: var(--btn-color);
  color: #000;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  z-index: 2;
}

/* ---------- TEXT STYLING ---------- */
.timeline h4 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
}
.timeline p {
  color: #c8c8c8;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 0.5rem;
}

/* ---------- MOBILE: CENTERED STACK ---------- */
@media (max-width: 768px) {
  .timeline::before {
    display: none;
  }

  .timeline li {
    width: 100%;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    padding: 3rem 1rem;
    text-align: center;
    align-items: center;
  }

  .timeline li:nth-child(odd),
  .timeline li:nth-child(even) {
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: center !important;
    align-items: center !important;
  }

  .timeline-step {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    margin: 0 auto 1rem auto;
  }

  .timeline h4,
  .timeline p {
    text-align: center;
  }
}

/* ===================== */
/* Responsive Adjustments */
/* ===================== */

/* Tablets (≤ 991px) */
@media (max-width: 991px) {
  .section {
    padding: 3rem 1.25rem;
  }

  .section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .value-grid {
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .industry-grid {
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .timeline li {
    padding: 2.5rem 1rem;
  }
}

/* Phones (≤ 767px) */
@media (max-width: 767px) {
  .section {
    padding: 2.5rem 1rem;
  }

  .section h2 {
    font-size: 1.7rem;
    margin-bottom: 1.8rem;
  }

  .value-card {
    padding: 1.5rem 1rem;
  }

  .value-card h3 {
    font-size: 1.1rem;
  }

  .value-card p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .industry-card img {
    width: 56px;
    height: 56px;
  }

  .industry-card h4 {
    font-size: 0.9rem;
  }

  .section--cta p {
    font-size: 0.95rem;
  }
}

/* Small Phones (≤ 480px) */
@media (max-width: 480px) {
  .section {
    padding: 2rem 0.8rem;
  }

  .section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .value-grid {
    gap: 1rem;
    grid-template-columns: 1fr;
  }

  .value-card {
    padding: 1.25rem 1rem;
  }

  .value-card h3 {
    font-size: 1rem;
  }

  .value-card p {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .industry-grid {
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }

  .industry-card img {
    width: 48px;
    height: 48px;
  }

  .industry-card h4 {
    font-size: 0.85rem;
  }

  .section--cta p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .timeline h4 {
    font-size: 1rem;
  }

  .timeline p {
    font-size: 0.85rem;
    line-height: 1.5;
  }
}
