/* ============================================================
   NexTR Digital — Alt Sayfa Ortak Stilleri (sayfa.css)
   index.html style.css'in üstüne biner. Yeşil palet + premium.
   Tüm alt sayfalar (yaklasim, sss, memnuniyetler, hakkimizda,
   blog, hizmetler + hizmet detayları) bunu kullanır.
   ============================================================ */

/* Alt sayfa gövdesi — hero kadar ağır değil, içerik odaklı */
.page-main { position: relative; z-index: 1; }

/* ---------- SUB-HERO (sayfa başlığı bölümü) ---------- */
.subhero {
  position: relative;
  padding: calc(var(--strip-h) + var(--nav-h) + 56px) 0 clamp(48px, 7vw, 88px);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--canvas) 0%, #0e0e18 100%);
}
.subhero__aura {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 80%;
  z-index: -1;
  background:
    radial-gradient(50% 70% at 25% 0%, rgba(0,232,143,0.16), transparent 60%),
    radial-gradient(45% 60% at 80% 20%, rgba(140,90,220,0.12), transparent 60%);
  filter: blur(50px);
  pointer-events: none;
}
.subhero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(245,245,250,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,245,250,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black, transparent 75%);
  pointer-events: none;
}
.subhero__inner { max-width: 860px; }
.subhero--center .subhero__inner { margin-inline: auto; text-align: center; }
.subhero--center .breadcrumb { justify-content: center; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--muted-2); transition: color 0.2s ease; }
.breadcrumb a:hover { color: #5af2b0; }
.breadcrumb span[aria-current] { color: var(--ink-2); }
.breadcrumb svg { width: 11px; height: 11px; opacity: 0.5; }

.subhero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5af2b0;
  margin-bottom: 18px;
}
.subhero__eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0,232,143,0.14), 0 0 10px rgba(0,232,143,0.6);
}
.subhero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.04;
  color: var(--ink);
}
.subhero__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(180deg, #ffffff 0%, #5af2b0 60%, #00e88f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 24px rgba(0,232,143,0.45));
}
.subhero__sub {
  margin-top: 20px;
  font-size: clamp(1.02rem, 1.4vw, 1.22rem);
  line-height: 1.6;
  color: var(--muted-2);
  max-width: 680px;
}
.subhero--center .subhero__sub { margin-inline: auto; }
.subhero__sub strong { color: var(--ink); font-weight: 600; }

/* Sub-hero hızlı istatistik şeridi */
.subhero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  margin-top: 32px;
}
.subhero--center .subhero__stats { justify-content: center; }
.subhero__stat { display: flex; flex-direction: column; gap: 2px; }
.subhero__stat strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.subhero__stat span { font-size: 0.78rem; color: var(--muted); }
.subhero__stat strong em { font-style: normal; color: #5af2b0; }

/* Sub-hero CTA grubu */
.subhero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.subhero--center .subhero__ctas { justify-content: center; }

/* ---------- GENEL İÇERİK BÖLÜMÜ ---------- */
.psection { padding: clamp(60px, 9vw, 110px) 0; position: relative; }
.psection--alt { background: var(--canvas-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.psection--tight { padding: clamp(44px, 6vw, 72px) 0; }

/* Prose (uzun metin / blog içeriği) */
.prose { max-width: 720px; margin-inline: auto; }
.prose > * + * { margin-top: 20px; }
.prose p { font-size: 1.05rem; line-height: 1.75; color: var(--ink-2); }
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-top: 44px;
}
.prose h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 32px;
}
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul { display: flex; flex-direction: column; gap: 10px; padding-left: 4px; }
.prose ul li {
  position: relative;
  padding-left: 26px;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 14px; height: 14px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(0,232,143,0.18);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M3 7l3 3 5-6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 10px no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M3 7l3 3 5-6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 10px no-repeat;
  background: #06160e;
}
.prose ul li::after {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 14px; height: 14px;
  background: var(--accent);
  border-radius: 50%;
  z-index: -1;
}

/* ---------- ÖZELLİK / DEĞER KARTLARI (grid) ---------- */
.fgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: clamp(36px, 5vw, 52px);
}
.fgrid--2 { grid-template-columns: repeat(2, 1fr); }
.fcard {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 24px;
  transition: transform 0.4s var(--ease-out), border-color 0.3s ease, box-shadow 0.4s ease;
}
.fcard:hover {
  transform: translateY(-4px);
  border-color: rgba(0,232,143,0.4);
  box-shadow: 0 28px 56px -16px rgba(0,232,143,0.2), 0 12px 24px -10px rgba(0,0,0,0.5);
}
.fcard__ic {
  display: inline-flex;
  width: 46px; height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: rgba(0,232,143,0.12);
  color: #5af2b0;
  border: 1px solid rgba(0,232,143,0.24);
  margin-bottom: 16px;
}
.fcard__ic svg { width: 23px; height: 23px; }
.fcard h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 9px;
  line-height: 1.2;
}
.fcard p { font-size: 0.92rem; line-height: 1.55; color: var(--muted-2); }
.fcard p strong { color: var(--ink); font-weight: 600; }
.fcard__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
  color: #5af2b0;
  margin-bottom: 10px;
  display: block;
}

/* ---------- ADIM / SÜREÇ (numbered) ---------- */
.steps { display: flex; flex-direction: column; gap: 14px; max-width: 820px; margin: clamp(36px,5vw,52px) auto 0; }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
  padding: 22px 24px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.step:hover { border-color: rgba(0,232,143,0.34); transform: translateX(3px); }
.step__num {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--grad-cta, linear-gradient(135deg,#00e88f,#009a5c));
  color: #06160e;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px -4px rgba(0,232,143,0.45);
}
.step__body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 6px;
}
.step__body p { font-size: 0.95rem; line-height: 1.6; color: var(--muted-2); }
.step__body p strong { color: var(--ink); font-weight: 600; }

/* ---------- SAYFA SONU CTA BANT ---------- */
.pcta {
  position: relative;
  padding: clamp(56px, 8vw, 96px) 0;
  background: linear-gradient(180deg, var(--espresso) 0%, var(--espresso-2) 100%);
  border-top: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.pcta__aura {
  position: absolute;
  inset: -30% -10%;
  z-index: -1;
  background: radial-gradient(50% 60% at 50% 0%, rgba(0,232,143,0.16), transparent 60%);
  filter: blur(50px);
  pointer-events: none;
}
.pcta__inner { max-width: 720px; margin-inline: auto; }
.pcta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.06;
  color: var(--ink);
}
.pcta h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: #5af2b0;
}
.pcta p {
  margin-top: 18px;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--muted-2);
  max-width: 560px;
  margin-inline: auto;
}
.pcta p strong { color: var(--ink); font-weight: 600; }
.pcta__ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
.pcta__micro {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--muted-2);
}
.pcta__micro svg { width: 15px; height: 15px; color: #5af2b0; }

/* WhatsApp yeşil buton (sayfalarda ortak) */
.btn--wa {
  background: linear-gradient(135deg, #29d76d 0%, #10a64b 100%) !important;
  color: #06160e !important;
  font-weight: 700 !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 12px 28px -8px rgba(37,211,102,0.5) !important;
}
.btn--wa:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn--wa svg { color: #06160e; }

/* ---------- BLOG KART GRID ---------- */
.bgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: clamp(36px, 5vw, 52px);
}
.bcard {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.3s ease, box-shadow 0.4s ease;
  text-decoration: none;
}
.bcard:hover {
  transform: translateY(-5px);
  border-color: rgba(0,232,143,0.4);
  box-shadow: 0 30px 60px -18px rgba(0,232,143,0.22), 0 14px 28px -10px rgba(0,0,0,0.5);
}
.bcard__thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(0,232,143,0.18), rgba(140,90,220,0.16));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.bcard__thumb svg { width: 56px; height: 56px; color: rgba(255,255,255,0.7); }
.bcard__cat {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 10px;
  background: rgba(8,8,14,0.7);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5af2b0;
}
.bcard__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.bcard__body h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}
.bcard__body p { font-size: 0.9rem; line-height: 1.5; color: var(--muted-2); flex: 1; }
.bcard__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 4px;
}
.bcard__more { color: #5af2b0; font-weight: 600; font-size: 0.86rem; }

/* ---------- HİZMET HUB KARTLARI ---------- */
.hubgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: clamp(36px, 5vw, 52px);
}
.hubcard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 26px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  text-decoration: none;
  transition: transform 0.4s var(--ease-out), border-color 0.3s ease, box-shadow 0.4s ease;
  position: relative;
}
.hubcard:hover {
  transform: translateY(-5px);
  border-color: rgba(0,232,143,0.45);
  box-shadow: 0 32px 64px -18px rgba(0,232,143,0.28), 0 14px 28px -10px rgba(0,0,0,0.55);
}
.hubcard__ic {
  width: 50px; height: 50px;
  border-radius: 14px;
  background: rgba(0,232,143,0.12);
  border: 1px solid rgba(0,232,143,0.24);
  color: #5af2b0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hubcard__ic svg { width: 25px; height: 25px; }
.hubcard h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}
.hubcard p { font-size: 0.92rem; line-height: 1.55; color: var(--muted-2); flex: 1; }
.hubcard__price { font-size: 0.84rem; color: #5af2b0; font-weight: 600; }
.hubcard__go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}
.hubcard__go svg { width: 13px; height: 13px; transition: transform 0.3s ease; }
.hubcard:hover .hubcard__go { color: #5af2b0; }
.hubcard:hover .hubcard__go svg { transform: translateX(3px); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .fgrid, .bgrid, .hubgrid { grid-template-columns: 1fr 1fr; }
  .fgrid--2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .fgrid, .bgrid, .hubgrid, .fgrid--2 { grid-template-columns: 1fr; }
  .subhero { padding-top: calc(var(--strip-h) + var(--nav-h) + 28px); }
  .subhero__stats { gap: 14px 24px; }
  .subhero__stat strong { font-size: 1.4rem; }
  .step { grid-template-columns: 44px 1fr; gap: 14px; padding: 18px; }
  .step__num { width: 38px; height: 38px; font-size: 1.1rem; }
  .prose p, .prose ul li { font-size: 1rem; }
}

/* ── 404 sayfası ── */
.subhero--404 { text-align: center; min-height: 72vh; display: flex; align-items: center; }
.subhero--404 .subhero__inner { margin-inline: auto; }
.err404__links {
  margin-top: 42px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px 18px;
}
.err404__links-label {
  width: 100%;
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted, #8a8aa0); margin-bottom: 6px;
}
.err404__links a {
  font-size: 0.95rem; color: var(--ink-2, #d8d8e2);
  text-decoration: none; padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.err404__links a:hover,
.err404__links a:focus-visible { color: var(--accent, #00e88f); border-bottom-color: var(--accent, #00e88f); }

/* ── Blog makalelerinde her zaman görünür "Anasayfa" butonu (sol-alt) ── */
.homefab {
  position: fixed;
  left: 20px;
  bottom: 24px;
  z-index: 64;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 17px 11px 14px;
  background: rgba(20, 20, 31, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line, #2e2e42);
  border-radius: 999px;
  color: var(--ink, #f5f5fa);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 32px -14px rgba(0, 0, 0, 0.55);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.homefab:hover,
.homefab:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent, #00e88f);
  background: rgba(26, 26, 40, 0.94);
}
.homefab svg { width: 18px; height: 18px; flex-shrink: 0; }
.homefab__label { white-space: nowrap; }
/* Mobil menü açıkken gizle (fab/mab ile aynı davranış) */
.nav.is-open ~ .homefab { opacity: 0; pointer-events: none; }
@media (max-width: 768px) {
  .homefab {
    left: 14px;
    bottom: 86px; /* sticky CTA bar (.mab) üstünde dursun */
    padding: 11px;
  }
  .homefab__label { display: none; } /* mobilde sadece ikon */
}
