/* ===========================================================================
   Technology Packaging — Ana sayfa premium UI (front page only)
   Dinamik Products + Sectors bölümleri + scroll-reveal animasyon tabanı +
   genel premium polish. Marka teal değişkenleri brand.css'ten gelir.
   =========================================================================== */

.tp-home {
  --hp-ease: cubic-bezier(.2,.7,.3,1);
  /* yumuşak gölgeler — ürün detay sayfasıyla aynı dil */
  --hp-shadow:      0 4px 18px -8px rgba(16,42,34,.16);
  --hp-shadow-soft: 0 18px 40px -24px rgba(16,42,34,.28);
  --hp-shadow-lift: 0 36px 70px -34px rgba(35,112,113,.42);
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 20px;
  box-sizing: border-box;
}
.tp-home *, .tp-home *::before, .tp-home *::after { box-sizing: border-box; }

/* ---- Scroll reveal (yalnızca JS aktifken gizle → SEO/no-JS güvenli) ---- */
.tp-js .tp-reveal { opacity: 0; transform: translateY(30px); }
.tp-reveal.tp-in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--hp-ease), transform .7s var(--hp-ease);
}

/* ---- Ortak buton ---- */
.tp-btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  background: var(--tp-brand-grad, linear-gradient(135deg,#1bb3d6,#009abf 48%,#007b99));
  color: #fff !important; text-decoration: none;
  font-weight: 700; font-size: 15px; letter-spacing: .2px;
  box-shadow: 0 16px 32px -16px rgba(0, 154, 191,.85);
  transition: transform .25s var(--hp-ease), box-shadow .25s var(--hp-ease);
}
.tp-btn-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -16px rgba(35,112,113,.9); }
.tp-btn-primary .tp-arrow { width: 18px; height: 18px; transition: transform .25s var(--hp-ease); }
.tp-btn-primary:hover .tp-arrow { transform: translateX(5px); }
.tp-home-foot { text-align: center; margin-top: 44px; }

/* ===========================================================================
   PRODUCTS — ana kategori kartları (büyük, premium, YUMUŞAK hover)
   =========================================================================== */
.tp-hc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
@media (max-width: 860px) { .tp-hc-grid { grid-template-columns: 1fr; gap: 20px; } }

.tp-hc-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--tp-brand-tint, #e3f3f3);
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--hp-shadow);
  transition: transform .45s var(--hp-ease), box-shadow .45s var(--hp-ease), border-color .45s var(--hp-ease);
  will-change: transform;
}
.tp-hc-card:hover {
  transform: translateY(-8px);
  border-color: var(--tp-brand-tint, #e3f3f3);
  box-shadow: var(--hp-shadow-lift);
}
.tp-hc-media {
  position: relative; display: block;
  aspect-ratio: 16 / 10;
  background: linear-gradient(160deg, #f3faf9, #e7f4f1);
  overflow: hidden;
}
.tp-hc-img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .7s var(--hp-ease); }
.tp-hc-card:hover .tp-hc-img { transform: scale(1.06); }
.tp-hc-noimg { display: block; width: 100%; height: 100%;
  background: radial-gradient(circle at 30% 30%, #cfeae6, #acd8d2); }
.tp-hc-media::after {              /* yumuşak alt karartma — yazı okunurluğu/derinlik */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(22,56,58,.30), rgba(22,56,58,0) 55%);
  opacity: 0; transition: opacity .45s var(--hp-ease);
}
.tp-hc-card:hover .tp-hc-media::after { opacity: 1; }
.tp-hc-count {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  padding: 7px 13px; border-radius: 99px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(6px);
  color: var(--tp-brand-darker, #006379);
  font-size: 11.5px; font-weight: 800; letter-spacing: .3px;
  box-shadow: var(--hp-shadow);
}
.tp-hc-body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 26px; }
.tp-hc-title {
  font-size: 21px; line-height: 1.25; font-weight: 800;
  color: var(--tp-brand-ink, #16383a);
  transition: color .3s var(--hp-ease);
}
.tp-hc-card:hover .tp-hc-title { color: var(--tp-brand, #009abf); }
.tp-hc-desc { margin: 10px 0 0; font-size: 14px; line-height: 1.6; color: #5d6f6b; }
.tp-hc-meta {
  margin-top: 12px; font-size: 12px; font-weight: 700; letter-spacing: .3px;
  color: var(--tp-brand-deep, #007b99); text-transform: uppercase;
}
.tp-hc-cta {
  margin-top: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 800; color: var(--tp-brand, #009abf);
}
.tp-hc-cta .tp-arrow { width: 17px; height: 17px; transition: transform .35s var(--hp-ease); }
.tp-hc-card:hover .tp-hc-cta .tp-arrow { transform: translateX(6px); }

/* ===========================================================================
   SECTORS GRID
   =========================================================================== */
.tp-hs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1100px) { .tp-hs-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .tp-hs-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 560px)  { .tp-hs-grid { grid-template-columns: 1fr; } }

.tp-hs-card {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 15px;
  padding: 20px 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--tp-brand-tint, #e3f3f3);
  text-decoration: none;
  box-shadow: var(--hp-shadow);
  transition: transform .45s var(--hp-ease), box-shadow .45s var(--hp-ease), border-color .45s var(--hp-ease);
  isolation: isolate;
}
.tp-hs-card::before {                 /* hover'da dolan gradient katman */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--tp-brand-grad, linear-gradient(135deg,#1bb3d6,#009abf 48%,#007b99));
  opacity: 0; transition: opacity .45s var(--hp-ease);
}
.tp-hs-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--hp-shadow-lift);
}
.tp-hs-card:hover::before { opacity: 1; }

.tp-hs-ico {
  flex: 0 0 auto;
  width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: var(--tp-brand-soft, #eef8f8);
  color: var(--tp-brand-deep, #007b99);
  transition: background-color .3s var(--hp-ease), color .3s var(--hp-ease), transform .3s var(--hp-ease);
}
.tp-hs-ico svg { width: 26px; height: 26px; }
.tp-hs-card:hover .tp-hs-ico { background: rgba(255,255,255,.22); color: #fff; transform: scale(1.06); }
/* Ajans rozet ikonları (ICONS.svg) — kendi slate çerçeveli; teal tile gösterme */
.tp-hs-ico:has(.tp-agency-badge) { background: transparent; width: 66px; height: 66px; border-radius: 0; }
.tp-hs-ico svg.tp-agency-badge { width: 66px; height: 66px; }
.tp-hs-card:hover .tp-hs-ico:has(.tp-agency-badge) { background: transparent; }

.tp-hs-text { display: flex; flex-direction: column; min-width: 0; }
.tp-hs-name {
  font-size: 15.5px; font-weight: 800; line-height: 1.2;
  color: var(--tp-brand-ink, #16383a);
  transition: color .3s var(--hp-ease);
}
.tp-hs-count {
  font-size: 12px; font-weight: 600; margin-top: 3px;
  color: var(--tp-brand-muted, #7c918c);
  transition: color .3s var(--hp-ease);
}
.tp-hs-card:hover .tp-hs-name,
.tp-hs-card:hover .tp-hs-count { color: #fff; }
.tp-hs-count.is-faded { opacity: .85; }

.tp-hs-arrow {
  margin-left: auto; flex: 0 0 auto;
  color: var(--tp-brand, #009abf);
  opacity: 0; transform: translateX(-6px);
  transition: opacity .3s var(--hp-ease), transform .3s var(--hp-ease), color .3s var(--hp-ease);
}
.tp-hs-arrow .tp-arrow { width: 18px; height: 18px; }
.tp-hs-card:hover .tp-hs-arrow { opacity: 1; transform: translateX(0); color: #fff; }

/* ===========================================================================
   GENEL HOME POLISH — mevcut Elementor section'ları için scroll-reveal sahnesi
   (home.js, üst-seviye section'lara .tp-reveal ekler)
   =========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .tp-js .tp-reveal { opacity: 1 !important; transform: none !important; }
  .tp-reveal.tp-in { transition: none !important; }
}

/* ===========================================================================
   FULL-WIDTH VIDEO — [tp_video] (Our Expertise alanı)
   =========================================================================== */
.tp-video-wrap { width: 100%; line-height: 0; }
.tp-video-frame {
  position: relative; width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0c1f1d;
}
.tp-video-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0; display: block;
}
/* çok geniş ekranlarda aşırı yükseklik olmasın */
@media (min-width: 1500px) { .tp-video-frame { aspect-ratio: auto; height: 78vh; max-height: 860px; } }

/* ===========================================================================
   TESTIMONIALS SLIDER — premium kart ([tp_testimonials])
   =========================================================================== */
.tp-testi {
  --hp-ease: cubic-bezier(.2,.7,.3,1);
  position: relative;
  background: #fff;
  border: 1px solid var(--tp-brand-tint, #e3f3f3);
  border-radius: 22px;
  padding: 46px 40px 30px;
  box-shadow: 0 30px 70px -40px rgba(22,56,58,.45);
  overflow: hidden;
}
.tp-testi::before {                 /* üst aksan şeridi */
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: var(--tp-brand-grad, linear-gradient(135deg,#1bb3d6,#009abf 48%,#007b99));
}
.tp-testi-mark {
  position: absolute; top: 18px; right: 30px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 110px; line-height: 1; font-weight: 700;
  color: var(--tp-brand-tint, #e3f3f3);
  pointer-events: none; user-select: none; z-index: 0;
}
.tp-testi-track { display: grid; position: relative; z-index: 1; }
.tp-testi-slide {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .55s var(--hp-ease), transform .55s var(--hp-ease);
  margin: 0;
}
.tp-testi-slide.is-active { opacity: 1; visibility: visible; transform: none; }
.tp-testi-text {
  margin: 0 0 26px; padding: 0; border: 0;
  font-size: 17.5px; line-height: 1.72; font-weight: 500; font-style: normal;
  color: #3f5450;
}
.tp-testi-author { display: flex; align-items: center; gap: 15px; }
.tp-testi-avatar {
  flex: 0 0 auto; width: 54px; height: 54px;
  border-radius: 50%; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--tp-brand-grad, linear-gradient(135deg,#1bb3d6,#009abf 48%,#007b99));
  box-shadow: 0 10px 22px -10px rgba(0, 154, 191,.8);
}
.tp-testi-ava-img { width: 100%; height: 100%; object-fit: cover; }
.tp-testi-ava-init { color: #fff; font-size: 20px; font-weight: 800; }
.tp-testi-meta { display: flex; flex-direction: column; min-width: 0; }
.tp-testi-name { font-size: 15.5px; font-weight: 800; color: var(--tp-brand-ink, #16383a); line-height: 1.2; }
.tp-testi-role { font-size: 13px; color: var(--tp-brand-deep, #007b99); margin-top: 3px; }

.tp-testi-nav { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; margin-top: 30px; }
.tp-testi-prev, .tp-testi-next {
  flex: 0 0 auto; width: 42px; height: 42px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; cursor: pointer;
  background: #fff; border: 1px solid var(--tp-brand-tint, #e3f3f3);
  color: var(--tp-brand, #009abf);
  transition: background-color .25s var(--hp-ease), color .25s var(--hp-ease),
              transform .25s var(--hp-ease), box-shadow .25s var(--hp-ease);
}
.tp-testi-prev svg, .tp-testi-next svg { width: 18px; height: 18px; }
.tp-testi-prev:hover, .tp-testi-next:hover {
  background: var(--tp-brand-grad, linear-gradient(135deg,#1bb3d6,#009abf 48%,#007b99));
  color: #fff; border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -12px rgba(0, 154, 191,.9);
}
.tp-testi-dots { display: flex; align-items: center; gap: 2px; margin-right: auto; }
/* Visual dot stays small but the tap target is >=24x24 (a11y target-size).
   We size the button to 24px and paint the small pill via an inner ::before. */
.tp-testi-dot {
  position: relative; width: 24px; height: 24px; min-width: 24px; padding: 0;
  border: 0; cursor: pointer; background: transparent; border-radius: 99px;
  display: inline-flex; align-items: center; justify-content: center;
  -webkit-appearance: none; appearance: none;
}
.tp-testi-dot::before {
  content: ""; display: block; width: 8px; height: 8px; border-radius: 99px;
  background: var(--tp-brand-tint, #e3f3f3);
  transition: width .3s var(--hp-ease), background-color .3s var(--hp-ease);
}
.tp-testi-dot.is-active::before { width: 26px; background: var(--tp-brand, #009abf); }
.tp-testi-dot:focus-visible { outline: 2px solid var(--tp-brand, #009abf); outline-offset: 2px; }

@media (max-width: 600px) {
  .tp-testi { padding: 38px 24px 26px; }
  .tp-testi-text { font-size: 16px; }
}
