/*
 * Hizmet sayfaları (templates/service-hub.php)
 * Giriş, satırlar, adımlar ve kapanış ai-v2.css ile portfolio-v2.css'ten.
 * Burada yalnız bu sayfaya özgü olanlar: kapak görseli ve sayfa içeriğindeki
 * bölümler (hub-toc, hub-block, hub-split, hub-list, hub-faq). Aynı bölümler AI,
 * Hizmetler, Portfolyo ve İletişim şablonlarında da kullanılır (inc/service-hub.php).
 */

/* ---------- giriş: kapak görseli ---------- */

.hub-cover {
  margin: 0; overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: var(--hx-r-lg);
  background: linear-gradient(145deg, var(--hx-mist), #e7ebf5);
}
.hub-cover img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- sayfa içeriği ---------- */

.hub-content .ai-steps { margin-top: 0; }
/* Hizmetler sayfasında arka plandaki geometri çizgileri metnin arkasında kalmasın (sv-close gibi). */
.sv .hub-content { position: relative; z-index: 1; background: var(--hx-paper); }
.hub-block { padding: 104px 0; scroll-margin-top: 64px; }
.hub-block + .hub-block { padding-top: 0; }
.hub-block--mist { background: var(--hx-mist); }
.hub-block--mist + .hub-block, .hub-block + .hub-block--mist { padding-top: 104px; }

.hub-split {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 64px; align-items: start;
}
.hub-block h2 {
  margin-top: 14px; max-width: 14em;
  font-weight: 500; font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.08; letter-spacing: -0.035em; color: var(--hx-ink);
}
.hub-block .hx-eyebrow { padding-top: 0; }
/* Logo: lacivert daire içinde (İletişim'deki döner rozetin çekirdeği gibi). */
.hub-logo {
  display: grid; place-items: center;
  width: 184px; aspect-ratio: 1; margin: 36px 0 0; padding: 20px;
  border-radius: 50%; background: var(--hx-navy);
  box-shadow: 0 0 0 6px var(--hx-paper), 0 0 0 7px rgba(233, 193, 118, .55), 0 24px 48px -24px rgba(5, 11, 26, .55);
}
.hub-logo img { display: block; width: 100%; height: auto; }

/* Kart ızgarası: bağlantılı kısa başlıklar (ör. Hakkımızda'daki disiplinler). */
.hub-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.hub-card {
  display: flex; flex-direction: column; gap: 8px; height: 100%;
  padding: 26px 28px 28px; border-radius: var(--hx-r-md);
  background: var(--hx-mist); border: 1px solid transparent;
  color: var(--hx-ink); text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease;
}
.hub-card:hover, .hub-card:focus-visible { background: var(--hx-paper); border-color: var(--hx-gold); }
.hub-card-title { display: flex; justify-content: space-between; gap: 12px; font-weight: 500; font-size: 18px; line-height: 1.3; }
.hub-card-title::after { content: "→"; color: var(--hx-gold-deep); }
.hub-card-text { font-size: 15px; line-height: 1.6; color: var(--hx-mute); }
.hub-note { margin-top: 36px; max-width: 46em; }
.hub-lead { font-size: 18px; line-height: 1.65; color: var(--hx-mute); max-width: 34em; }
.hub-lead + .hub-lead { margin-top: 14px; }

.hub-list { display: grid; gap: 14px; margin-top: 28px; }
.hub-block a:not(.hx-btn):not(.pf-card):not(.hub-card) {
  color: var(--hx-ink);
  text-decoration: underline; text-decoration-color: var(--hx-gold);
  text-decoration-thickness: 1.5px; text-underline-offset: 3px;
}
.hub-block a:not(.hx-btn):not(.pf-card):not(.hub-card):hover { text-decoration-color: var(--hx-gold-deep); }
.hub-list li {
  position: relative; padding: 18px 0 0 34px;
  border-top: 1px solid var(--hx-line);
  font-size: 16px; line-height: 1.6; color: var(--hx-mute);
}
.hub-list li::before {
  content: ""; position: absolute; left: 4px; top: 25px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--hx-gold); box-shadow: 0 0 0 4px rgba(233, 193, 118, .22);
}
.hub-list + .hub-lead { margin-top: 28px; }
.hub-list strong { display: block; font-weight: 500; font-size: 17px; color: var(--hx-ink); }

/* ---------- "Bu sayfada" listesi (içerikteki H2'lerden) ---------- */

.hub-toc { padding: 40px 0 0; }
.hub-toc .hx-wrap {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px;
  padding-bottom: 22px; border-bottom: 1px solid var(--hx-line);
}
.hub-toc-title { font-weight: 500; font-size: 14px; color: var(--hx-ink); }
.hub-toc ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.hub-toc li { position: relative; padding-left: 14px; }
.hub-toc li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--hx-gold);
}
.hub-toc a { font-size: 14px; line-height: 1.5; color: var(--hx-mute); text-decoration: none; }
.hub-toc a:hover, .hub-toc a:focus-visible { color: var(--hx-ink); text-decoration: underline; text-underline-offset: 3px; }
.hub-content h2[id] { scroll-margin-top: 96px; }
.hub-toc + .hub-block, .hub-toc + .ai-steps { padding-top: 72px; }

/* ---------- SSS ---------- */

.hub-faq { margin-top: 36px; border-top: 1px solid var(--hx-line); }
.hub-faq details { border-bottom: 1px solid var(--hx-line); }
.hub-faq summary {
  position: relative; padding: 24px 48px 24px 0;
  list-style: none; cursor: pointer;
  font-weight: 500; font-size: 19px; line-height: 1.4; color: var(--hx-ink);
}
.hub-faq summary::-webkit-details-marker { display: none; }
.hub-faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 12px; height: 12px; margin-top: -8px;
  border-right: 1.8px solid var(--hx-gold-deep); border-bottom: 1.8px solid var(--hx-gold-deep);
  transform: rotate(45deg); transition: transform .2s ease;
}
.hub-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.hub-faq details p { padding: 0 48px 24px 0; font-size: 16px; line-height: 1.7; color: var(--hx-mute); max-width: 46em; }

@media (max-width: 900px) {
  .hub-block { padding: 72px 0; }
  .hub-block--mist + .hub-block, .hub-block + .hub-block--mist { padding-top: 72px; }
  .hub-split { grid-template-columns: 1fr; gap: 28px; }
  .hub-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .hub-cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hub-faq summary::after, .hub-card { transition: none; }
}
