/* =========================================================
   Process Section + Filters + Modular Timeline (Scoped)
   Save as: process.css  (or add to your main stylesheet)
   ========================================================= */

/* ---------- Theme tokens ---------- */
:root{
  --bg: #f5cbbe;           /* section background */
  --text: #2c2c2c;
  --card: #ffffff;
  --accent: #b35656;       /* icons / headings tint */
  --chip: #ffe7dd;
  --chip-active: #ffd3c3;
  --shadow-soft: 0 10px 24px rgba(0,0,0,.08);
}

/* utility (in case Bootstrap isn't available in this scope) */
.d-none { display:none !important; }

/* ---------- Process Section ---------- */
.process-section{
  background: var(--bg);
  color: var(--text);
  padding: 64px 0;
}

.process-heading{
  color:#fff;
  margin-bottom:6px;
  font-weight:800;
}

.process-sub{
  color:#fff;
  opacity:.95;
  margin-bottom:20px;
}

/* Filters (tabs/pills) */
.process-filters{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
  margin-bottom:22px;
}

.process-filter{
  border:1px solid rgba(0,0,0,.06);
  background: var(--chip);
  padding:10px 14px;
  border-radius:999px;
  cursor:pointer;
  font-weight:600;
  transition:transform .05s ease, background .2s ease;
  user-select:none;
}
.process-filter[aria-pressed="true"]{
  background: var(--chip-active);
  outline:2px solid rgba(0,0,0,.06);
}
.process-filter:active{ transform:scale(.98); }

/* Cards */
.process-card{
  background: var(--card);
  border-radius:18px;
  padding:18px;
  box-shadow: var(--shadow-soft);
  height:100%;
  margin-bottom: 20px; /* add vertical spacing between cards */
}

.process-icon{
  width:28px;
  height:28px;
  margin-bottom:8px;
  color: var(--accent);
}

.process-title{
  font-weight:800;
  margin:0 0 6px;
}

.process-text{
  margin:0;
}

/* optional: make the row breathe a bit on small screens */
@media (max-width: 640px){
  .process-section{ padding:48px 0; }
}

/* Make sure process cards layout correctly on very small screens */
@media (max-width: 576px) {
  .process-card {
    height: auto !important; /* prevent forced full-height that collapses spacing */
    margin-bottom: 22px !important; /* ensure visible gap */
  }

  /* If using a grid/row of process columns, add bottom padding so cards don't touch */
  .row.process-grid > [class*="process-col"],
  .row.process-grid > .process-col,
  .row.process-grid > [class*="col-"] {
    padding-bottom: 18px !important;
  }

  /* Fallback: add row gap for modern browsers */
  .row.process-grid {
    display: grid !important;
    grid-template-columns: 1fr;
    row-gap: 18px !important;
  }
}

/* ---------- Modular Timeline (scoped) ---------- */
/* Keep it hidden by default; toggle via JS by removing .d-none */
#modular-timeline{
  position:relative;
  padding:40px 0 60px;
  background: var(--bg);
}

/* central line */
#modular-timeline::before{
  content:"";
  position:absolute;
  left:50%;
  top:0;
  bottom:0;
  width:5px;
  background:#C5CAE9;
  transform:translateX(-50%);
}

#modular-timeline .container{
  position:relative;
  max-width:1000px;
  margin:0 auto;
}

#modular-timeline .timeline-item{
  width:100%;
  margin-bottom:70px;
  position:relative;
}
#modular-timeline .timeline-item::after{
  content:"";
  display:block;
  clear:both;
}

/* node dot */
#modular-timeline .timeline-img{
  width:30px;
  height:30px;
  background:#3F51B5;
  border-radius:50%;
  position:absolute;
  left:50%;
  margin-top:25px;
  margin-left:-15px;
  box-shadow:0 2px 8px rgba(0,0,0,.12);
}

/* card */
#modular-timeline .timeline-content{
  position:relative;
  width:45%;
  padding:14px 22px;
  border-radius:16px;
  background:#fff;
  box-shadow: var(--shadow-soft);
}

/* arrow */
#modular-timeline .timeline-content::after{
  content:"";
  position:absolute;
  top:30px;
  right:-15px;
  width:0;
  height:0;
  border-style:solid;
  border-width:10px 0 10px 15px;
  border-color:transparent transparent transparent #fff;
}

/* alternate sides */
#modular-timeline .timeline-item:nth-child(even) .timeline-content{
  float:right;
  padding:40px 22px 12px;
}
#modular-timeline .timeline-item:nth-child(even) .timeline-content::after{
  left:-15px;
  right:auto;
  border-width:10px 15px 10px 0;
  border-color:transparent #fff transparent transparent;
}

#modular-timeline .timeline-content h2{
  margin:0 0 6px;
  font-weight:800;
  color:#3F51B5;
}
#modular-timeline .timeline-content p{
  margin:0;
  color: var(--text);
}
.process-duration {
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
  margin-top: 20px;
  padding: 15px 25px;
  border-radius: 12px;
  display: inline-block;
  color: #fff; /* solid white text */
  animation: shake 0.8s infinite, glow 2s infinite alternate;
  background: transparent;
}

/* ✨ Glowing neon effect around text */
@keyframes glow {
  0%   { text-shadow: 0 0 5px #ff6ec7, 0 0 10px #ff512f, 0 0 15px #f5cbbe; }
  50%  { text-shadow: 0 0 20px #fddb92, 0 0 30px #ff6ec7, 0 0 40px #ff512f; }
  100% { text-shadow: 0 0 10px #ff512f, 0 0 20px #f5cbbe, 0 0 25px #ff6ec7; }
}

/* ===== Modern Timeline Styles ===== */
.modern-timeline {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.timeline-progress {
  height: 6px;
  background: #f0f0f0;
  border-radius: 3px;
  margin: 2rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.progress-bar {
  position: absolute;
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
  border-radius: 3px;
  transition: width 0.6s ease;
}

.timeline-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 2rem;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  flex: 1;
}

.step-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e0e0e0;
  border: 4px solid #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.step-dot.active {
  background: #2563eb;
  transform: scale(1.1);
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.2);
  animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

.step-label {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  text-align: center;
  transition: all 0.3s ease;
}

.timeline-step.active .step-label {
  color: #4f46e5;
  font-weight: 700;
}

.step-connector {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #e0e0e0;
  z-index: -1;
}

.timeline-estimate {
  text-align: center;
  padding: 2rem;
  background: #f8f9ff;
  border-radius: 12px;
  margin-top: 2rem;
  border: 1px solid #eef2ff;
}

.estimate-badge {
  display: inline-flex;
  align-items: center;
  background: #dbeafe;
  color: #1d4ed8;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 1rem;
  border: 1px solid #bfdbfe;
}

.estimate-badge i {
  margin-right: 8px;
  font-size: 16px;
}

.timeline-estimate h3 {
  font-size: 20px;
  color: #1f2937;
  margin: 0.5rem 0;
  line-height: 1.4;
  word-wrap: break-word;
  padding: 0 1rem;
  max-width: 100%;
}

@media (min-width: 768px) {
  .timeline-estimate h3 {
    font-size: 24px;
  }
}

.timeline-note {
  color: #6b7280;
  margin: 0.5rem 0 0;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  white-space: normal;
  padding: 0 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .modern-timeline {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .timeline-steps {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  
  .timeline-step {
    flex: 0 0 calc(50% - 1rem);
    margin-bottom: 1rem;
  }
  
  .step-connector {
    display: none;
  }
  
  .timeline-estimate {
    padding: 1.5rem;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 🤯 Shake Animation */
@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-3px); }
  40% { transform: translateX(3px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
  100% { transform: translateX(0); }
}


/* responsive timeline */
@media (max-width: 768px){
  #modular-timeline::before{
    left:50px;
    transform:none;
  }
  #modular-timeline .timeline-img{
    left:50px;
    margin-left:-15px;
  }
  #modular-timeline .timeline-content{
    width:auto;
    margin-left:70px;
    float:none !important;
  }
  #modular-timeline .timeline-content::after{
    left:-15px;
    right:auto;
    border-width:10px 15px 10px 0;
    border-color:transparent #fff transparent transparent;
  }
}

/* ---------- Minor helpers for section harmony ---------- */
.home_banner_area .banner_inner{ min-height:120px; } /* keep banner slim above section */
.ftco-footer{ padding-top:40px; }


.timeline-highlight {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  background: linear-gradient(135deg, #ffecd2, #fcb69f);
  border-radius: 12px;
  padding: 14px 0;
  margin: 30px auto 10px auto;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  position: relative;
  text-align: center;
  animation: pulseGlow 3s infinite; /* glowing effect */
}

/* scrolling text */
.timeline-highlight span {
  display: inline-block;
  padding-left: 100%; /* start off screen right */
  animation: scrollText 12s linear infinite;
  font-size: 1.2rem;
  font-weight: 700;
  color: #4a2c2a;
}

/* glowing pulse effect */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 rgba(252, 182, 159, 0.4);
  }
  50% {
    box-shadow: 0 0 25px rgba(252, 182, 159, 0.7);
  }
  100% {
    box-shadow: 0 0 0 rgba(252, 182, 159, 0.4);
  }
}

/* scrolling ticker */
@keyframes scrollText {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}
