/* ======================================================
  SERVICES PAGE
====================================================== */

main.services-page{
  overflow-x: clip;
  padding-bottom: 56px;
}

/* ---------------- HERO ---------------- */

.services-hero{
  margin-top: 34px;
}

.services-title{
  font-size: 32px;
  line-height: 1.15;
  color: rgba(0,0,0,0.86);
  letter-spacing: -0.4px;
  display: table;
  margin: 0 auto 10px;
}

.services-title::after{
  content:"";
  display:block;
  width: 100%;
  height: 3px;
  margin: 10px auto 0;
  background: #75A5CD;
  border-radius: 3px;
}

.services-lead{
  font-size: 16px;
  line-height: 1.6;
  color: rgba(0,0,0,0.78);
  margin-bottom: 8px;
}

.text-lead{
 text-align: center;
 font-weight: 600;
 color: #5d97c6;
}

/*SECTION*/

.section-title{
  font-size: 24px;
  letter-spacing: -0.2px;
  color: rgba(0,0,0,0.86);
  margin-bottom: 14px;
}

/* ---------------- CARDS ---------------- */

.cards-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.services-cards{
  margin-top: 24px;
}

.service-card{
  display: flex;
  flex-direction: column;
  padding: 16px 16px 14px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
  text-decoration: none;
  color: inherit;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  min-height: 148px;
}

.service-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.10);
  text-decoration: none;
}

.card-icon{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(117,165,205,0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: #75A5CD; 
}

.card-icon .icon{
  width: 20px;
  height: 20px;
}

.service-card:hover .card-icon{
  color: #5A90C5;
  background: rgba(117,165,205,0.20);
}

.card-title{
  font-size: 16px;
  line-height: 1.25;
  margin: 0 0 6px;
  color: rgba(0,0,0,0.86);
  letter-spacing: -0.2px;
  font-weight: 600;
}

.card-text{
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(0,0,0,0.74);
  flex-grow: 1;
}

.card-link{
  display: inline-block;
  font-size: 14px;
  color: rgba(0,0,0,0.78);
  opacity: .8;
  margin-top: 8px;
  transition: opacity .15s ease, transform .15s ease;
}

.service-card:hover .card-link{
  font-weight: 600;
  transform: translateX(2px);
}

/* ---------------- ACCORDION ---------------- */

.services-detail{
  margin-top: 24px;
}

.accordion{
  display: grid;
  gap: 10px;
}

.services-page .acc-item,
.services-page .acc-summary{
  scroll-margin-top: var(--scroll-offset);
}

.acc-item{
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  background: #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
  overflow: hidden;
}

.acc-summary{
  padding: 16px 18px;
  font-size: 15px;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #5D97C6;
  font-weight: 600;
  cursor: pointer;
}

.acc-summary::-webkit-details-marker{ display:none; }

.acc-chevron{
  font-size: 14px;
  opacity: .65;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(117,165,205,0.10);
  opacity: .9;
  transition: transform .18s ease, background .18s ease;
}

.acc-item[open] .acc-chevron{
  transform: rotate(180deg);
  background: rgba(117,165,205,0.16);
}

.acc-item{
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.06);
  background: #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
  overflow: hidden;

}

.acc-item[open]{
  border-color: rgba(117,165,205,0.35);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

.acc-body{
  padding: 4px 18px 18px;
}

.acc-body p{
  margin: 10px 0 14px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(0,0,0,0.76);
}

.acc-subtitle{
  margin: 14px 0 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.1px;
  color: rgba(0,0,0,0.86);
}

.acc-list{
  margin: 0 0 14px;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(0,0,0,0.76);
}

.acc-list li{
  margin: 6px 0;
}

.acc-list li::marker{
  color: rgba(117,165,205,0.85);
}

.result-box{
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(117,165,205,0.08);
  border: 1px solid rgba(117,165,205,0.22);
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
  align-self: flex-start;
}

.acc-body{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.result-box strong{
  color: rgba(0,0,0,0.88);
}

/* ---------------- TIMELINE ---------------- */

.services-approach{
  margin-top: 24px;
}

.timeline-from-article{
  padding-left: 0;
}

.timeline-from-article > p{
  max-width: 85ch;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(0,0,0,0.76);
  margin: 0 0 14px;
}

.timeline-from-article > ul{
  --tl-gutter: 32px;   
  --tl-line-x: 14px;   
  --tl-dot: 12px;      
  --tl-pad-y: 14px; 

  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  position: relative;
  margin-bottom: 14px;
}

.timeline-from-article > ul::before{
  content:"";
  position: absolute;
  left: var(--tl-line-x);
  top: calc(var(--tl-pad-y) + (var(--tl-dot) / 2));
  bottom: calc(var(--tl-pad-y) + (var(--tl-dot) / 2));
  width: 2px;
  background: rgba(117,165,205,0.22);
}

.timeline-from-article > ul > li{
    position: relative;
  padding-left: var(--tl-gutter);
}

.timeline-from-article > ul > li::before{
  content:"";
  position: absolute;
  left: calc(var(--tl-line-x) - (var(--tl-dot) / 2) + 1px);
  top: 50%;
  transform: translateY(-50%);
  width: var(--tl-dot);
  height: var(--tl-dot);
  border-radius: 50%;
  background: #75A5CD;
  box-shadow: 0 0 0 6px rgba(117,165,205,0.12);
}

.timeline-from-article > ul > li > p{
  margin: 0;
  padding: var(--tl-pad-y) 20px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
  font-size: 14px;
  line-height: 1.7;
  color: rgba(0,0,0,0.76);
  width: 620px;
  display: inline-block;
}

.timeline-from-article > p{
  max-width: 85ch;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(0,0,0,0.76);
  margin: 0 0 14px;
}

.timeline-from-article > ul > li *{
  margin: 0;
}

/* ---------------- CTA ---------------- */

.services-cta{
  text-align: center;
  padding-top: 26px;
}

.cta-title{
  border-top: 0; 
  padding-top: 0;
  margin-bottom: 0;
  margin-top: 0;
  letter-spacing: -0.3px;
  font-size: 28px;
}

.cta-text{
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(0,0,0,0.72);
}

.cta-actions{
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 10px;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  font-size: 14px;
  color: #fff;
  font-weight: 800;
  background: #ffffff;
  cursor: pointer;
}

.btn-primary{
  background: #3F6BB2;
}

.btn-ghost{
  background: #7cacd3;
}

.btn:hover{
  filter: brightness(0.95);
  text-decoration: none;
}

/* =========================================================
   SERVICES — MOBILE PACK
   ========================================================= */

@media (max-width: 820px){

  main.services-page{
    padding-bottom: 44px;
  }

  /* --- HERO --- */
  .services-hero{
    margin-top: 22px;
  }

  .services-title{
    font-size: 28px;
    margin-bottom: 8px;
  }

  .services-title::after{
    height: 3px;
    margin-top: 8px;
  }

  .services-lead{
    font-size: 14px;
    line-height: 1.65;
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--page-pad);
    text-align: center;
  }

  .text-lead{
    padding: 0 var(--page-pad);
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
  }

  .section{
    padding: 0 var(--page-pad);
  }
  
  .section-title{
    font-size: 22px;
    margin-bottom: 12px;
  }

  /* --- CARDS --- */
  .cards-grid{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .services-cards{
    margin-top: 18px;
  }

  .service-card{
    padding: 14px 14px 12px;
    border-radius: 16px;
    min-height: 0;        
    box-shadow: none;     
  }

  .card-icon{
    width: 36px;
    height: 36px;
    border-radius: 12px;
    margin-bottom: 10px;
  }

  .card-title{
    font-size: 16px;
    margin-bottom: 6px;
  }

  .card-text{
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 8px;
  }

  .card-link{
    margin-top: 6px;
  }

  /* --- ACCORDION --- */
  .services-detail{
    margin-top: 18px;
  }

  .accordion{
    gap: 10px;
  }

  .acc-item{
    border-radius: 16px;
    box-shadow: none; 
  }

  .acc-summary{
    padding: 14px 14px;
    font-size: 14px;
    line-height: 1.3;
    gap: 12px;
  }

  .acc-chevron{
    flex-shrink: 0;      
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
  }
  
  .acc-body{
    padding: 2px 14px 14px;
  }

  .acc-body p{
    font-size: 14px;
    line-height: 1.65;
    margin: 10px 0 12px;
  }

  .acc-subtitle{
    font-size: 14px;
    margin: 12px 0 8px;
  }

  .acc-list{
    font-size: 14px;
    line-height: 1.65;
    padding-left: 18px;
    margin-bottom: 12px;
  }

  .result-box{
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    box-shadow: none;
    width: 100%;
  }

  /* --- TIMELINE --- */
  .services-approach{
    margin-top: 18px;
    margin-bottom: 0;
  }

  .timeline-from-article > p{
    max-width: 60ch;
    font-size: 14px;
    line-height: 1.65;
  }

  .timeline-from-article > ul{
    --tl-gutter: 26px;
    --tl-line-x: 10px;
    --tl-dot: 10px;
    --tl-pad-y: 12px;

    gap: 12px;
    margin-bottom: 12px;
  }

  .timeline-from-article > ul::before{
    width: 2px;
    top: calc(var(--tl-pad-y) + (var(--tl-dot) / 2));
    bottom: calc(var(--tl-pad-y) + (var(--tl-dot) / 2));
  }

  .timeline-from-article > ul > li{
    padding-left: var(--tl-gutter);
  }

  .timeline-from-article > ul > li::before{
    left: calc(var(--tl-line-x) - (var(--tl-dot) / 2) + 1px);
    box-shadow: 0 0 0 5px rgba(117,165,205,0.12);
  }

  .timeline-from-article > ul > li > p{
    width: 100%;
    max-width: 100%;
    display: block;
    padding: var(--tl-pad-y) 14px;
    border-radius: 16px;
    box-shadow: none;
    font-size: 14px;
    line-height: 1.65;
  }

  /* --- CTA --- */
  .services-cta{
    padding-top: 16px;
    padding-left: var(--page-pad);
    padding-right: var(--page-pad);
  }

  .cta-title{
    font-size: 20px;
    line-height: 1.2;
  }

  .cta-text{
    font-size: 14px;
    line-height: 1.65;
  }

  .cta-actions{
    gap: 10px;
    padding-top: 12px;
  }

  .services-cta .btn{
    width: 100%;
    max-width: 320px;
    justify-content: center;
    padding: 12px 16px;
  }
}