/* assets/css/pages/services.css */

:root{
  --green: #2f9e44;
  --green-dark: #25853a;
  --bg: #ffffff;
  --panel: #f1f1f1;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --muted-2: #7c7c7c;
  --border: rgba(0,0,0,.18);
  --shadow: 0 10px 26px rgba(0,0,0,.10);
}

.services-page{
  background: var(--bg);
  padding: 0;
  margin: 0;
}

/* HERO (same look/height as prototype) */
.services-hero{
  position: relative;
  height: 260px;
  overflow: hidden;
  background: #e9eef3;
}

.services-hero__bg{
  position: absolute;
  inset: 0;
  background: url("/assets/images/service-hero.png") center / cover no-repeat;
}

.services-hero__overlay{
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.62);
}

.services-hero__inner{
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0 16px;
}

.services-hero__title{
  margin: 0 0 8px;
  font-weight: 900;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.3px;
}

.services-hero__title .t-dark{ color: #111827; }
.services-hero__title .t-green{ color: var(--green); }

.services-hero__subtitle{
  margin: 0;
  max-width: 820px;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 600;
}

/* BODY */
.services-body{
  padding: 22px 0 40px;
}

.services-wrap{
  max-width: 980px;
}

/* Section head */
.services-section{
  margin-bottom: 26px;
}

.services-section__head{
  margin-bottom: 12px;
}

.services-section__title{
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
}

.services-section__line{
  width: 60px;
  height: 3px;
  border-radius: 999px;
  background: var(--green);
  margin-bottom: 10px;
}

.services-section__desc{
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}

/* Panel big grey */
.services-panel{
  background: var(--panel);
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 20px 22px;
}

.services-panel__title{
  margin: 0;
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
}

.services-panel__subtitle{
  margin: 10px auto 0;
  text-align: center;
  max-width: 860px;
  font-size: 13px;
  color: var(--muted-2);
  line-height: 1.65;
  font-weight: 600;
}

/* Expertise cards (same look) */
.services-cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 18px 0 18px;
}

.service-card{
  background: var(--card);
  border: 1px solid rgba(0,0,0,.45);
  border-radius: 10px;
  padding: 16px 14px;
  text-align: center;
  display: grid;
  gap: 10px;
  min-height: 120px;
}

.service-card__icon{
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(42,166,80,.12);
  margin: 0 auto;
  display: grid;
  place-items: center;
  color: rgba(17,24,39,.55);
}

.service-card__icon svg{
  width: 22px;
  height: 22px;
}

.service-card__title{
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  color: #2b2f36;
  line-height: 1.1;
}

/* Trainings images */
.services-trainings{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 18px 0 18px;
}

.training-card{
  margin: 0;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.12);
  background: #dde6ef;
  height: 110px;
}

.training-card img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.02);
}

.training-card figcaption{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 900;
  color: rgba(42,166,80,.90);
  text-shadow: 0 10px 22px rgba(0,0,0,.14);
}

/* Full width green button like prototype */
.services-panel__btn{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  width: 100%;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  border-radius: 4px;
  text-decoration: none;
  margin-top: 6px;
  box-shadow: 0 10px 18px rgba(42,166,80,.18);
  transition: transform .18s ease, background .18s ease;
}

.services-panel__btn:hover{
  transform: translateY(-2px);
  background: var(--green-dark);
}

.services-panel__btn span{
  font-size: 18px;
  line-height: 1;
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 992px){
  .services-hero__title{ font-size: 34px; }
  .services-hero__subtitle{ font-size: 12px; }
  .services-section__title{ font-size: 20px; }
  .services-panel__title{ font-size: 20px; }
  .services-cards, .services-trainings{ grid-template-columns: 1fr; }
  .training-card{ height: 150px; }
  .service-card__title{ font-size: 15px; }
}

@media (max-width: 768px){
  .services-hero{ height: 220px; }
  .services-hero__title{ font-size: 28px; }
  .services-hero__subtitle{ font-size: 11px; }
  .services-body{ padding: 16px 0 30px; }
  .services-section__title{ font-size: 18px; }
  .services-section__subtitle{ font-size: 12px; }
  .services-panel{ padding: 16px; }
  .services-panel__title{ font-size: 18px; }
  .services-panel__subtitle{ font-size: 12px; }
  .service-card{ padding: 12px 10px; }
  .service-card__title{ font-size: 13px; }
}

@media (max-width: 520px){
  .services-hero{ height: 200px; }
  .services-hero__title{ font-size: 22px; }
  .services-hero__subtitle{ font-size: 10px; }
  .services-body{ padding: 14px 0 24px; }
  .services-section__title{ font-size: 16px; }
  .services-section__subtitle{ font-size: 11px; }
  .services-panel{ padding: 12px 14px; }
  .services-panel__title{ font-size: 16px; }
  .services-panel__subtitle{ font-size: 11px; }
  .services-cards { gap: 12px; }
  .service-card{ padding: 10px 8px; min-height: 110px; }
  .service-card__icon{ width: 36px; height: 36px; }
  .service-card__title{ font-size: 12px; }
  .services-trainings{ gap: 12px; }
  .training-card{ height: 100px; }
  .training-card figcaption{ font-size: 16px; }
  .services-panel__btn{ height: 36px; font-size: 11px; }
}

/* ===========================
   Modern animations (no layout changes)
   =========================== */

@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}

/* HERO: soft zoom + fade */
.services-hero.is-animate .services-hero__bg{
  transform: scale(1.06);
  animation: heroZoom 1.2s ease forwards;
}

.services-hero.is-animate .services-hero__overlay{
  opacity: 0;
  animation: heroOverlayIn .9s ease forwards;
}

.services-hero.is-animate .services-hero__title{
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp .8s ease .15s forwards;
}

.services-hero.is-animate .services-hero__subtitle{
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp .8s ease .28s forwards;
}

/* Section reveal */
.reveal{
  opacity: 0;
  transform: translateY(22px);
  animation: fadeUp .85s ease forwards;
}

.reveal:nth-of-type(1){ animation-delay: .10s; }
.reveal:nth-of-type(2){ animation-delay: .20s; }
.reveal:nth-of-type(3){ animation-delay: .30s; }

/* Panel slight pop */
.panel-reveal{
  opacity: 0;
  transform: translateY(16px) scale(.99);
  animation: panelIn .75s ease .15s forwards;
}

/* Cards hover: micro-interaction */
.service-card,
.training-card{
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  will-change: transform;
}

.service-card:hover,
.training-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(0,0,0,.12);
}

/* Icon subtle float */
.service-card__icon{
  transition: transform .25s ease;
}
.service-card:hover .service-card__icon{
  transform: translateY(-2px);
}

/* Button shimmer (light) */
.services-panel__btn{
  position: relative;
  overflow: hidden;
}

.services-panel__btn:active{
  transform: translateY(0);
}

.services-panel__btn::after{
  content:"";
  position:absolute;
  top:-40%;
  left:-30%;
  width: 40%;
  height: 180%;
  background: rgba(255,255,255,.22);
  transform: rotate(18deg) translateX(-140%);
  transition: transform .7s ease;
}

.services-panel__btn:hover::after{
  transform: rotate(18deg) translateX(420%);
}

/* Keyframes */
@keyframes fadeUp{
  to{ opacity: 1; transform: translateY(0); }
}

@keyframes panelIn{
  to{ opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes heroZoom{
  to{ transform: scale(1); }
}

@keyframes heroOverlayIn{
  to{ opacity: 1; }
}