/* ═══════════════════════════════════════════════════════════════════
   KONSEPT 9 — İÇ HİZMET SAYFALARI (sayfa.css)
   styles.css token ailesinin üstüne hafif sayfa katmanı.
   İç sayfalarda film yok: native scroll, IO reveal ≤ 0.6 s, pin yasak.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Kompakt hero: soluk fotoğraf bandı + klaket künye ── */
.page-hero {
  position: relative;
  padding: clamp(3.2rem, 9vh, 6rem) 0 clamp(2.6rem, 7vh, 4.4rem);
  border-bottom: 1px solid var(--hair);
  overflow: hidden;
}
.ph-media { position: absolute; inset: 0; z-index: 0; }
.ph-media img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .16; filter: grayscale(35%) contrast(1.02);
}
.ph-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(251,251,249,.94) 0%, rgba(251,251,249,.72) 46%, rgba(251,251,249,.42) 100%);
}
.ph-inner { position: relative; z-index: 1; }
.ph-kicker { color: var(--red-deep); margin-bottom: 1.1rem; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 4rem); }
.ph-lead {
  max-width: 34em; margin-top: 1.1rem;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--grey);
}
.page-hero .frame-tag { position: absolute; bottom: .9rem; z-index: 1; }

/* ── Bariyer bandı (dekoratif ayraç) ── */
.barrier {
  height: 10px;
  background: repeating-linear-gradient(-45deg,
    var(--red-block) 0 22px, var(--paper) 22px 44px);
  opacity: .9;
}

/* ── Editoryal gövde ── */
.page-body { padding: clamp(3rem, 8vh, 5.5rem) 0 clamp(3.4rem, 9vh, 6rem); }
.pb-grid {
  display: grid; grid-template-columns: 7fr 4fr;
  gap: clamp(2.4rem, 5vw, 5rem);
  align-items: start;
}
.pb-main > h2, .pb-main > h3 {
  font-stretch: 110%; font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.02em; line-height: 1.06;
}
.pb-main > h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin: 2.6rem 0 1rem; }
.pb-main > h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); margin: 2.4rem 0 .9rem; }
.pb-main > h2:first-child { margin-top: 0; }
.pb-main p { margin-bottom: 1.05rem; max-width: 62ch; }
.pb-main p:last-child { margin-bottom: 0; }
.pb-main strong { font-weight: 600; }

/* Süreç adımları — klaket numaralı */
.steps { list-style: none; counter-reset: step; margin: 1.4rem 0 .6rem; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: .95rem 0 1rem 3.4rem;
  border-top: 1px solid var(--hair);
}
.steps li:last-child { border-bottom: 1px solid var(--hair); }
.steps li::before {
  content: "0" counter(step);
  position: absolute; left: 0; top: 1.05rem;
  font-family: var(--font-m); font-size: .72rem; font-weight: 500;
  letter-spacing: .1em; color: var(--red-deep);
  border: 1px solid rgba(255, 0, 9, .35);
  padding: .2rem .4rem;
}
.steps b, .steps strong {
  display: block; font-weight: 600; margin-bottom: .15rem;
}
.steps li p { margin: 0; color: var(--grey); font-size: .95rem; }

/* Evrak listesi */
.doc-list { list-style: none; margin: 1.2rem 0 .6rem; }
.doc-list li {
  display: flex; align-items: baseline; gap: .7rem;
  padding: .55rem 0; border-top: 1px dotted var(--hair);
}
.doc-list li:last-child { border-bottom: 1px dotted var(--hair); }
.doc-list li::before {
  content: "▸"; color: var(--red); flex-shrink: 0;
  font-size: .8rem;
}

/* Yan sütun: künye kartı */
.pb-side { position: static; }
.side-card {
  background: #fff;
  border: 1px solid var(--hair);
  border-top: 3px solid var(--red);
  box-shadow: 0 14px 44px rgba(16, 18, 20, .08);
  padding: 1.2rem 1.3rem 1.4rem;
}
.side-card + .side-card { margin-top: 1.4rem; }
.sc-head {
  display: flex; align-items: center; gap: .55rem;
  color: var(--grey); font-size: .62rem;
  padding-bottom: .7rem; margin-bottom: .9rem;
  border-bottom: 1px solid var(--hair);
}
.sc-head::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255, 0, 9, .16);
}
.sc-rows { list-style: none; font-size: .68rem; }
.sc-rows li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .5rem 0; border-top: 1px dotted var(--hair);
}
.sc-rows li span:last-child { color: var(--red-deep); text-align: right; }
.side-card .u-link { font-size: .9rem; }

/* SSS — details/summary */
.faq { margin-top: 1rem; }
.faq details { border-top: 1px solid var(--hair); }
.faq details:last-child { border-bottom: 1px solid var(--hair); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: .95rem .1rem;
  font-family: var(--font-d); font-weight: 700; font-stretch: 108%;
  font-size: 1.02rem; text-transform: uppercase; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--font-m); color: var(--red);
  font-size: 1rem; flex-shrink: 0;
  transition: transform 250ms var(--ease);
}
.faq details[open] summary::after { content: "–"; color: var(--red-deep); }
.faq details p { padding: 0 .1rem 1.1rem; color: var(--grey); max-width: 60ch; }

/* ── CTA bloğu ── */
.page-cta { background: var(--ink); color: #fff; }
.page-cta .wrap {
  padding-top: clamp(2.8rem, 7vh, 4.4rem);
  padding-bottom: clamp(2.8rem, 7vh, 4.4rem);
}
.cta-tag { color: rgba(255, 255, 255, .6); margin-bottom: 1rem; }
.cta-title {
  font-size: clamp(1.7rem, 3.4vw, 2.8rem);
  font-weight: 800; font-stretch: 112%;
  line-height: 1.04; letter-spacing: -0.02em; text-transform: uppercase;
  max-width: 18em;
}
.cta-title em { font-style: normal; color: var(--red); }
.cta-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.page-cta .btn-primary { background: #fff; color: var(--ink); }
.page-cta .btn-primary:hover { background: var(--red); color: #fff; }
.cta-note { color: rgba(255, 255, 255, .55); font-size: .64rem; margin-top: 1.4rem; }

/* ── İletişim sayfası ── */
.contact-grid {
  display: grid; grid-template-columns: 5fr 6fr;
  gap: clamp(2.4rem, 5vw, 5rem);
  align-items: start;
}
.contact-form .form-row { margin-bottom: 1.1rem; }
.contact-form label {
  display: block;
  font-family: var(--font-m); font-size: .62rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--red-deep); margin-bottom: .4rem;
}
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  font-family: var(--font-b); font-size: .95rem; color: var(--ink);
  background: #fff;
  border: 1px solid var(--hair);
  padding: .75rem .85rem;
  border-radius: 0;
  transition: border-color 200ms var(--ease);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red);
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.form-status {
  display: none; margin-top: 1rem;
  border: 1px solid #22c55e; color: #15803d;
  font-family: var(--font-m); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase;
  padding: .8rem 1rem;
}
.form-status.show { display: block; }
.form-demo-note { color: var(--grey); font-size: .62rem; margin-top: .9rem; }

.points-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: .6rem; margin-top: 1.4rem;
}
.point {
  border: 1px solid var(--hair); background: #fff;
  padding: .7rem .8rem;
  font-size: .8rem; line-height: 1.35;
}
.point .mono { display: block; font-size: .56rem; color: var(--red-deep); margin-bottom: .25rem; }

/* ── T1 Formu yönlendirme kartı ── */
.redirect-wrap { max-width: 620px; }
.redirect-card {
  background: #fff;
  border: 1px solid var(--hair);
  border-top: 3px solid var(--red);
  box-shadow: 0 24px 70px rgba(16, 18, 20, .12);
  padding: 1.6rem 1.7rem 1.8rem;
  margin-top: 1.8rem;
}
.redirect-card .pc-head-line {
  display: flex; align-items: center; gap: .55rem;
  color: var(--grey); font-size: .62rem;
  font-family: var(--font-m); letter-spacing: .14em; text-transform: uppercase;
  padding-bottom: .8rem; margin-bottom: 1rem;
  border-bottom: 1px solid var(--hair);
}
.redirect-card .pc-head-line::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 0 3px rgba(255, 0, 9, .16);
}
.redirect-title {
  font-family: var(--font-d); font-weight: 800; font-stretch: 110%;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem); line-height: 1.1;
  letter-spacing: -0.02em; text-transform: uppercase;
}
.redirect-card p.body { color: var(--grey); margin-top: .8rem; }
.redirect-card .btn { margin-top: 1.4rem; }

/* ── Kırılımlar ── */
@media (max-width: 900px) {
  .pb-grid, .contact-grid { grid-template-columns: 1fr; }
  .pb-side { order: 2; }
}

/* ═══════════════════════════════════════════════════════════════════
   RTL HAZIRLIĞI — ar/fa dalgası
   Kullanım: sayfa <html dir="rtl" lang="ar"> (veya lang="fa") ile gelir.
   Metin hizası otomatik döner (direction); burada yalnız FİZİKSEL yönlü
   kurallar aynalanır: hero degrade yönü, künye kenarları, madde işaretleri,
   adım numarası rayı, klaket künye ve sol ilerleme şeridi tarafı.
   ═══════════════════════════════════════════════════════════════════ */

/* Hero: soluk fotoğraf degradesi metin tarafından (sağdan) başlar */
[dir="rtl"] .ph-media::after {
  background: linear-gradient(270deg, rgba(251,251,249,.94) 0%, rgba(251,251,249,.72) 46%, rgba(251,251,249,.42) 100%);
}
/* Klaket zemin künyesi karşı kenara */
[dir="rtl"] .page-hero .frame-tag { left: auto; right: calc(var(--rail) + var(--gutter)); }

/* Adım rayı: numara kutusu sağ kenara, metin payı sağdan */
[dir="rtl"] .steps li { padding: .95rem 3.4rem 1rem 0; }
[dir="rtl"] .steps li::before { left: auto; right: 0; }

/* Madde işaretli listeler: ok yönü aynalanır */
[dir="rtl"] .doc-list li::before { content: "◂"; }

/* Künye kartı: değer sütunu ters kenara yaslanır */
[dir="rtl"] .sc-rows li span:last-child { text-align: left; }

/* SSS: +/− işareti karşı kenarda kalır (flex zaten döner), padding dengesi */
[dir="rtl"] .faq summary { padding: .95rem .1rem; }

/* Ana sayfa film katmanı (ileride ar/fa ana sayfası üretilirse):
   sol ilerleme şeridi ve "filmi atla" karşı kenara geçer */
[dir="rtl"] .film-meter { left: auto; right: var(--rail); align-items: flex-end; transform: translateX(1px); }
[dir="rtl"] .film-skip { right: auto; left: clamp(20px, 4.5vw, 68px); }
[dir="rtl"] .frame-tag { left: auto; right: calc(var(--rail) + var(--gutter)); }
