/* Kıbrıs Psikoloji v28 — seamless hero, refined profile and balanced sections. */

/* Quiet geometric texture around the opening composition. */
.kp-home-hero--v12 {
  position:relative;
  isolation:isolate;
}

.kp-home-hero--v12::before {
  content:"";
  position:absolute;
  z-index:0;
  inset:0;
  pointer-events:none;
  background-image:
    linear-gradient(45deg,transparent 47%,rgba(154,98,80,.07) 48%,rgba(154,98,80,.07) 49%,transparent 50%),
    linear-gradient(-45deg,transparent 47%,rgba(22,74,70,.055) 48%,rgba(22,74,70,.055) 49%,transparent 50%);
  background-position:0 0,36px 0;
  background-size:72px 72px;
  -webkit-mask-image:linear-gradient(90deg,rgba(0,0,0,.72),rgba(0,0,0,.12) 72%,transparent);
  mask-image:linear-gradient(90deg,rgba(0,0,0,.72),rgba(0,0,0,.12) 72%,transparent);
}

.kp-home-hero--v12 > * {
  position:relative;
  z-index:1;
}

@media (min-width:1001px) {
  /* One continuous white surface; the sage remains inside the portrait itself. */
  .kp-v18-hero-shell {
    background:#fffdf9!important;
  }

  .kp-v18-hero-shell .kp-v18-hero-media {
    overflow:hidden!important;
    clip-path:none!important;
    background:#fffdf9!important;
    filter:none!important;
  }

  .kp-v18-hero-shell .kp-v18-hero-media::before {
    content:none!important;
    display:none!important;
  }

  .kp-v18-hero-shell .kp-v18-hero-media .kp-v12-hero-photo {
    clip-path:ellipse(96% 76% at 96% 50%);
    background:#fffdf9!important;
    filter:none!important;
  }
}

.kp-v12-hero-title {
  max-width:14ch!important;
  font-size:clamp(2.65rem,3.75vw,3.8rem)!important;
  line-height:1.03!important;
}

.kp-v18-hero-shell .kp-v12-benefits > .wp-block-column {
  align-items:center!important;
  text-align:center!important;
}

.kp-v18-hero-shell .kp-v12-benefits .kp-v12-benefit-icon {
  margin-inline:auto!important;
}

.kp-v18-hero-shell .kp-v12-benefits p,
.kp-v18-hero-shell .kp-v12-benefits p strong,
.kp-v18-hero-shell .kp-v12-benefits p span {
  text-align:center!important;
}

/* Specialist name stays together until the tablet breakpoint. */
.kp-v28-specialist-title {
  max-width:none!important;
  margin-bottom:1rem!important;
}

.kp-v28-specialist-title span {
  display:block;
  margin-bottom:.3rem;
  color:#167064;
  font-family:var(--wp--preset--font-family--sans);
  font-size:clamp(.78rem,1vw,.92rem);
  font-weight:700;
  letter-spacing:.09em;
  line-height:1.2;
  text-transform:uppercase;
}

.kp-v28-specialist-title strong {
  display:block;
  color:#263f3c;
  font-family:var(--wp--preset--font-family--editorial);
  font-size:clamp(2.25rem,3.6vw,3.65rem);
  font-weight:500;
  line-height:1.03;
  white-space:nowrap;
}

.kp-v27-profile-action {
  margin:1.35rem 0 0!important;
}

.kp-v27-profile-cards {
  margin-top:1.35rem!important;
}

.kp-v27-profile-card,
.kp-v27-profile-card h3,
.kp-v27-profile-card p,
.kp-v27-profile-card li {
  text-align:center!important;
}

.kp-v27-profile-icon {
  margin-right:auto!important;
  margin-left:auto!important;
}

/* Let service copy use the card instead of sitting in a narrow text island. */
.home .kp-v18-service-card > p:not(.kp-v9-service-no):not(.kp-card-link),
.home .kp-v9-service-feature > p:not(.kp-v9-service-no):not(.kp-card-link) {
  width:100%!important;
  max-width:none!important;
}

.home .kp-v18-services-grid > .wp-block-column:nth-child(3) h3 {
  width:100%;
  text-align:center!important;
}

/* Warm metallic emphasis for the process action. */
.kp-process-v19 .kp-v28-metal-button .wp-block-button__link {
  position:relative;
  overflow:hidden;
  border:1px solid rgba(255,244,235,.56)!important;
  background:linear-gradient(120deg,#71483d 0%,#b78570 24%,#e1c4b4 45%,#91604f 67%,#c69b86 100%)!important;
  background-size:180% 100%!important;
  color:#fffdf9!important;
  box-shadow:0 13px 30px rgba(0,0,0,.2),inset 0 1px rgba(255,255,255,.35)!important;
  transition:background-position .3s ease,transform .25s ease,box-shadow .25s ease!important;
}

.kp-process-v19 .kp-v28-metal-button .wp-block-button__link:hover {
  background-position:100% 0!important;
  color:#fff!important;
  transform:translateY(-2px);
  box-shadow:0 17px 38px rgba(0,0,0,.25),inset 0 1px rgba(255,255,255,.42)!important;
}

/* Certificates share one baseline; interaction still lifts the selected item. */
.kp-certificate-showcase .kp-certificates__viewport {
  padding:3.5rem .5rem 5rem!important;
}

.kp-certificate-showcase .kp-certificates__track {
  align-items:flex-start!important;
}

.kp-certificate-showcase .kp-certificate-card,
.kp-certificate-showcase .kp-certificate-card:nth-child(n) {
  --kp-archive-y:0px!important;
  transform:translateY(0)!important;
}

@media (max-width:1000px) {
  .kp-v28-specialist-title strong {
    font-size:clamp(2rem,4.2vw,3rem);
    white-space:normal;
  }
}

@media (max-width:600px) {
  .kp-v12-hero-title {
    max-width:12ch!important;
    font-size:clamp(2.25rem,10.5vw,3rem)!important;
  }

  .kp-home-hero--v12::before {
    opacity:.6;
  }
}

@media (prefers-reduced-motion:reduce) {
  .kp-process-v19 .kp-v28-metal-button .wp-block-button__link {
    transition:none!important;
  }
}
