/* === SERVICES SECTION HEADERS === */
.services-page-wrapper {
  padding-top: 140px !important;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
}

.sec-center .sec-tag {
  font-size: 0.88rem;
  font-weight: 600;
}

.sec-center .sec-title {
  font-size: clamp(2rem, 5vw, 4.5rem);
  text-align: center;
  margin-bottom: 14px;
}

.sec-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sec-center .sec-rule {
  margin: 20px auto;
}

/* === REVEAL EFFECT === */
.rev {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.rev.vis {
  opacity: 1;
  transform: none;
}

.d2 {
  transition-delay: 0.2s;
}

/* === BUTTON RED === */
.btn-red {
  font-family: var(--fc);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  border: none;
  padding: 11px 24px;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  width: fit-content;
  text-decoration: none;
}

.btn-red::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--red2);
  transform: translateX(-101%);
  transition: transform 0.3s;
}

.btn-red:hover {
  box-shadow: 0 0 36px var(--rg);
  color: #fff;
}

.btn-red:hover::after {
  transform: translateX(0);
}

.btn-red .t {
  position: relative;
  z-index: 1;
}

/* === SERVICES LAYOUT === */
.services-wrap {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  margin-top: 56px;
  border: 1px solid var(--br);
  background: var(--bk2);
}

[data-theme="light"] .services-wrap {
  background: var(--bk2);
  border: 1px solid rgba(0, 0, 0, 0.15);
}

/* === SIDEBAR === */
.svc-tabs {
  border-right: 1px solid var(--br);
  display: flex;
  flex-direction: column;
}

[data-theme="light"] .svc-tabs {
  border-right: 1px solid rgba(0, 0, 0, 0.15);
}

.tab-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--bd);
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  font-family: var(--fc);
  font-size: 0.93rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--g3);
}

.tab-item:last-child {
  border-bottom: none;
}

.tab-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s;
}

.tab-item:hover {
  color: var(--w4);
  background: rgba(255, 255, 255, 0.02);
}

.tab-item.active {
  color: var(--w);
  background: rgba(232, 0, 14, 0.05);
}

.tab-item.active::before {
  transform: scaleY(1);
}

.tab-num {
  font-family: var(--fd);
  font-size: 0.72rem;
  color: rgba(232, 0, 14, 0.35);
  min-width: 18px;
  transition: color 0.3s;
}

.tab-item.active .tab-num,
.tab-item:hover .tab-num {
  color: var(--red);
}

.tab-arrow {
  margin-left: auto;
  color: var(--g2);
  font-size: 0.75rem;
  transition: all 0.3s;
  opacity: 0;
}

.tab-item.active .tab-arrow,
.tab-item:hover .tab-arrow {
  opacity: 1;
  color: var(--red);
  transform: translateX(3px);
}

/* === PANES === */
.svc-panes {
  overflow: hidden;
}

.svc-pane {
  display: none;
  flex-direction: column;
  animation: paneIn 0.38s ease forwards;
}

.svc-pane.active {
  display: flex;
}

@keyframes paneIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Pane top */
.pane-top {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  border-bottom: 1px solid var(--br);
  min-height: 210px;
}

[data-theme="light"] .pane-top {
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.pane-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6.2rem;
  color: var(--red2);
  background: var(--bk3);
  border-right: 1px solid var(--br);
  min-height: 210px;
  transition: color 0.4s;
}

[data-theme="light"] .pane-img-placeholder {
  background: var(--bk3);
  border-right: 1px solid rgba(0, 0, 0, 0.15);
}

.pane-img-placeholder:hover {
  color: rgba(232, 0, 14, 0.18);
}

.pane-info {
  padding: 30px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 11px;
}

.pane-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(232, 0, 14, 0.1);
  border: 1px solid rgba(232, 0, 14, 0.28);
  padding: 3px 10px;
  font-family: var(--fm);
  font-size: 0.58rem;
  color: var(--red);
  letter-spacing: 2px;
  text-transform: uppercase;
  width: fit-content;
}

.pane-badge::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--red);
  border-radius: 50%;
  animation: blink 0.9s infinite;
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.pane-title {
  font-family: var(--fd) !important;
  font-size: 2.3rem;
  color: var(--w);
  line-height: 0.95;
  letter-spacing: 1.5px;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

.pane-desc {
  font-size: 0.88rem;
  color: var(--g3);
  line-height: 1.8;
  max-width: 420px;
}

/* Features */
.pane-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--br);
}

[data-theme="light"] .pane-features {
  border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.feat-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 26px;
  border-bottom: 1px solid var(--bd);
  border-right: 1px solid var(--bd);
  transition: background 0.3s;
}

.feat-item:nth-child(2n) {
  border-right: none;
}

.feat-item:nth-last-child(-n+2) {
  border-bottom: none;
}

.feat-item:hover {
  background: rgba(232, 0, 14, 0.04);
}

[data-theme="light"] .feat-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  border-right: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .feat-item:hover {
  background: rgba(232, 0, 14, 0.06);
}

.feat-check {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  color: var(--red);
  flex-shrink: 0;
}

.feat-text {
  font-size: 0.84rem;
  color: var(--g3);
  transition: color 0.3s;
}

.feat-item:hover .feat-text {
  color: var(--w);
}

/* === METHODOLOGY BLOCK === */
.pane-methodology {
  border-top: 1px solid var(--br);
  padding: 38px 34px 34px;
  background: var(--bk);
}

.meth-header {
  text-align: center;
  margin-bottom: 34px;
}

.meth-tag {
  font-family: var(--fm);
  font-size: 0.63rem;
  color: var(--red);
  letter-spacing: 4px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 10px;
}

.meth-tag::before {
  content: '//';
  opacity: 0.45;
}

.meth-title {
  font-family: var(--fd);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 0.92;
  letter-spacing: 1px;
  color: var(--w);
}

.meth-title .a {
  color: var(--red);
}

.meth-rule {
  width: 32px;
  height: 2px;
  background: var(--red);
  margin: 14px auto 0;
  position: relative;
}

.meth-rule::after {
  content: '';
  position: absolute;
  left: 40px;
  top: 0;
  width: 6px;
  height: 2px;
  background: rgba(232, 0, 14, 0.35);
}

/* Process timeline */
.proc-timeline {
  position: relative;
}

.proc-line {
  position: absolute;
  top: 40px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--br) 15%, var(--br) 85%, transparent);
  pointer-events: none;
}

.proc-grid {
  display: grid;
  position: relative;
  z-index: 1;
}

.proc-grid-5 {
  grid-template-columns: repeat(6, 1fr);
}

.proc-step {
  padding: 0 10px;
  text-align: center;
  position: relative;
}

/* Arrow connector */
.proc-step::after {
  content: '›';
  position: absolute;
  top: 22px;
  right: -7px;
  color: rgba(232, 0, 14, 0.35);
  font-size: 1.2rem;
  z-index: 2;
  transition: color 0.35s;
  line-height: 1;
}

.proc-step:last-child::after {
  display: none;
}

.proc-step:hover::after {
  color: var(--red);
}

.proc-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 18px;
}

/* Hexagon */
.proc-hex {
  width: 72px;
  height: 72px;
  background: var(--bk2);
  border: 1px solid var(--br);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--red);
  transition: all 0.4s;
  position: relative;
  z-index: 1;
}

.proc-step:hover .proc-hex {
  border-color: var(--red);
  background: rgba(232, 0, 14, 0.1);
  box-shadow: 0 0 24px rgba(232, 0, 14, 0.25);
  filter: drop-shadow(0 0 8px rgba(232, 0, 14, 0.35));
}

/* Step number badge */
.proc-num {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 19px;
  height: 19px;
  background: var(--red);
  font-family: var(--fd);
  font-size: 0.65rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* Red top-bar sweep on hover */
.proc-step-inner {
  position: relative;
  padding-top: 6px;
}

.proc-step-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.38s ease;
}

.proc-step:hover .proc-step-inner::before {
  width: 72px;
}

.proc-title {
  font-family: var(--fc);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--w);
  margin-bottom: 7px;
  transition: color 0.3s;
  line-height: 1.2;
}

.proc-step:hover .proc-title {
  color: var(--red);
}

.proc-desc {
  font-size: 0.6rem;
  color: var(--g3);
  line-height: 1.65;
}

/* === RESPONSIVE BREAKPOINTS === */
@media (max-width: 1200px) {
  .services-wrap {
    grid-template-columns: 250px 1fr;
  }
  .proc-grid-5 {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 30px;
  }
  .proc-line {
    display: none;
  }
  .proc-step::after {
    display: none;
  }
}

@media (max-width: 1000px) {
  .pane-top {
    grid-template-columns: 190px 1fr;
  }
  .services-page-wrapper {
    padding-top: 120px !important;
  }
  .services-wrap {
    grid-template-columns: 1fr;
  }
  .svc-tabs {
    flex-direction: row;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 1px solid var(--br);
  }
  .tab-item {
    flex: 1 1 auto;
    padding: 13px 12px;
    border-bottom: none;
    border-right: 1px solid var(--bd);
    justify-content: center;
    font-size: 0.76rem;
    min-width: 100px;
  }
  .tab-item:last-child {
    border-right: none;
  }
  .tab-item::before {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    height: 3px;
    transform: scaleX(0);
    transform-origin: left;
  }
  .tab-item.active::before {
    transform: scaleX(1);
  }
  .tab-num,
  .tab-arrow {
    display: none;
  }
  .pane-top {
    grid-template-columns: 1fr;
  }
  .pane-img-placeholder {
    height: 180px;
    min-height: 180px;
    border-right: none;
    border-bottom: 1px solid var(--br);
    width: 100%;
    text-align: center !important;
    font-size: 4.2rem;
    display: flex;
    margin-top: 30px;
  }
  .proc-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
  .proc-line {
    display: none;
  }
  .proc-step::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .services-page-wrapper {
    padding-top: 120px !important;
  }
  .pane-info {
    padding: 22px 18px;
  }
  .pane-title {
    font-size: 1.6rem;
  }
  .pane-features {
    grid-template-columns: 1fr;
  }
  .feat-item {
    border-right: none;
  }
  .feat-item:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--bd);
  }
  .feat-item:last-child {
    border-bottom: none;
  }
  .pane-methodology {
    padding: 26px 18px 22px;
  }
  .proc-grid-5 {
    grid-template-columns: 1fr;
    row-gap: 0;
  }
  .proc-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-align: left;
    padding: 16px 0;
    border-bottom: 1px solid var(--bd);
  }
  .proc-step:last-child {
    border-bottom: none;
  }
  .proc-step::after {
    display: none;
  }
  .proc-step-inner {
    padding-top: 0;
    flex: 1;
  }
  .proc-step-inner::before {
    display: none;
  }
  .proc-icon-wrap {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .proc-hex {
    width: 52px;
    height: 52px;
    font-size: 1rem;
  }
  .proc-title,
  .proc-desc {
    text-align: left;
  }
  .svc-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .tab-item:nth-child(odd) {
    border-right: 1px solid var(--bd);
  }
  .tab-item:not(:nth-last-child(-n+2)) {
    border-bottom: 1px solid var(--bd);
  }
}

@media (max-width: 480px) {
  .proc-hex {
    width: 48px;
    height: 48px;
    font-size: 1rem;
  }
}
