/* Appcell Servis — proje katmanı (K25)
 * Stitch tasarımındaki bölüm düzenlerini, motorun hazır bölüm türleri üzerinde uygular.
 * Motor çekirdeği (admin/*, lib/*) değişmez; yalnız site görünümünü brife göre özelleştirir.
 */

/* --- HEADER menü: TEK SATIR, sığmazsa yazı küçülür ------------------------- */
@media (min-width: 840px) {
  .site-header .site-nav { min-width: 0; }
  .site-header .site-nav__list {
    flex-wrap: nowrap !important;
    white-space: nowrap;
    min-width: 0;
  }
  .site-header .site-nav__list > li { white-space: nowrap; flex: 0 0 auto; }
  .site-header .site-nav__link { white-space: nowrap; }
  /* Taban font (küçültme buradan başlar, JS kademeli indirir) */
  .site-header .site-nav { font-size: 15px; }
}

.hero--appcell { position: relative; padding: clamp(48px, 6vw, 96px) 0; background: var(--color-surface); }
.hero--appcell .hero__inner { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 840px) {
  .hero--appcell .hero__inner { grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 4vw, 72px); }
}
.hero--appcell .hero__copy > * + * { margin-top: 16px; }
.hero--appcell .hero__copy .eyebrow { color: var(--color-muted); letter-spacing: .08em; font-size: 12px; font-weight: 600; text-transform: uppercase; }
.hero--appcell .t-hero { font-size: clamp(26px, 4.4vw, 32px); line-height: var(--leading-display-xl, 1.15); font-weight: 700; letter-spacing: -0.015em; color: var(--color-on-surface); margin: 0; }
.hero--appcell .t-lead { font-size: 18px; line-height: var(--leading-body, 1.5); color: var(--color-muted); max-width: 540px; margin: 0; }

.hero__badges { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: var(--color-on-surface);
}
.hero__badge svg { color: var(--color-accent); flex: none; }

.hero--appcell .hero__actions { margin-top: 24px; gap: 12px; }
.hero--appcell .hero__actions .btn { flex: none; }
.hero--appcell .hero__actions .btn svg { margin-right: 6px; }
.hero__scroll { display: inline-block; margin-top: 16px; color: var(--color-muted); font-size: 14px; text-decoration: none; }
.hero__scroll:hover { color: var(--color-accent); text-decoration: underline; }

.hero__stage--portrait { aspect-ratio: 3 / 4; max-height: 600px; }
.hero__portrait {
  position: relative; width: 100%; height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
}
.hero__portrait-img, .hero__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hero__portrait-pattern {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--color-accent) 4%, transparent) 0, transparent 40%),
    radial-gradient(circle at 80% 70%, color-mix(in srgb, var(--color-primary) 5%, transparent) 0, transparent 45%),
    repeating-linear-gradient(135deg, transparent 0 32px, color-mix(in srgb, var(--color-on-surface) 3%, transparent) 32px 33px);
}
.hero__portrait-caption {
  position: absolute; bottom: 12px; right: 16px;
  font-size: 12px; color: var(--color-muted); font-weight: 500;
}

/* --- TRUST STRIP ------------------------------------------------------------ */
section:has(> .container > .trust)  { background: var(--color-surface-alt); }
.trust {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  padding: 16px 0;
  gap: 12px 24px;
  color: var(--color-on-surface);
  font-size: 14px; font-weight: 500;
}
.trust > * { display: inline-flex; align-items: center; gap: 8px; }
.trust > *::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--color-accent);
}

/* --- NUMBERED COLUMNS (nasil-calisir) --------------------------------------- */
section:has(#home-nasil-calisir-title) { background: var(--color-surface-alt); padding: clamp(48px, 6vw, 96px) 0; }
section:has(#home-nasil-calisir-title) .section__head { margin-bottom: 48px; }
section:has(#home-nasil-calisir-title) .prose { max-width: none; }
section:has(#home-nasil-calisir-title) .prose p { white-space: pre-line; }
section:has(#home-nasil-calisir-title) .prose p {
  display: grid; grid-template-columns: 1fr; gap: 24px;
  max-width: none;
}
@media (min-width: 840px) {
  section:has(#home-nasil-calisir-title) .prose p {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
}
/* Her satır "01 · Kargoyla Gönderin — …" → ilk 2 karakter büyük rakam */
section:has(#home-nasil-calisir-title) .prose p::before { display: none; }

/* --- DATA SAFETY ------------------------------------------------------------ */
section:has(#home-data-safety-title) { background: var(--color-surface); padding: clamp(48px, 6vw, 96px) 0; }
section:has(#home-data-safety-title) .prose p { white-space: pre-line; max-width: 680px; }

/* --- WHY US / BENTO (spotlight) --------------------------------------------- */
section:has(#home-why-us-title) { background: var(--color-surface-alt); padding: clamp(48px, 6vw, 96px) 0; }

/* --- PRICING ---------------------------------------------------------------- */
section:has(#home-pricing-title) { background: var(--color-surface); padding: clamp(48px, 6vw, 96px) 0; text-align: center; }
section:has(#home-pricing-title) .prose { max-width: 680px; margin-inline: auto; text-align: center; }
section:has(#home-pricing-title) .prose p { max-width: none; }

/* --- CLOSING CTA (contact section, deep band) ------------------------------- */
section:has(#home-closing-cta-title) {
  background: var(--color-deep);
  color: var(--color-on-deep);
  padding: clamp(64px, 8vw, 96px) 0;
}
section:has(#home-closing-cta-title) h2,
section:has(#home-closing-cta-title) .t-display-lg,
section:has(#home-closing-cta-title) p { color: var(--color-on-deep); }
section:has(#home-closing-cta-title) p { opacity: .88; }

/* --- SERVICES ızgara: Stitch kartına benzer çerçeveli, dolu değil ---------- */
.card--service, .product-card { border: 1px solid var(--color-border); background: var(--color-surface); border-radius: var(--radius-md); }
.card--service:hover, .product-card:hover { border-color: var(--color-on-surface); }

/* --- FAQ --- Stitch'teki thin top border, boxless accordion ---------------- */
.faq-teaser .accordion-item { border-top: 1px solid var(--color-border); border-left: none; border-right: none; border-bottom: none; border-radius: 0; background: transparent; }
.faq-teaser .accordion-item:last-child { border-bottom: 1px solid var(--color-border); }

/* --- Numbered section labels (01 · HİZMETLER …) ---------------------------- */
.eyebrow {
  color: var(--color-muted);
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

/* --- Safety grid (data-safety bölümü için JS dönüştürür) ------------------- */
.safety-grid {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
  margin-top: 32px;
}
@media (min-width: 600px) { .safety-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .safety-grid { grid-template-columns: repeat(4, 1fr); } }
.safety-grid__item {
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}
.safety-grid__title { font-size: 18px; font-weight: 600; margin: 0 0 8px; color: var(--color-on-surface); }
.safety-grid__body { font-size: 14px; color: var(--color-muted); margin: 0; line-height: var(--leading-body, 1.5); }

/* --- Reusable "numbered" layout utility — ileride kullanılabilir ----------- */
.numbered-row {
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 840px) { .numbered-row { grid-template-columns: repeat(4, 1fr); } }
.numbered-row__item { border-top: 2px solid var(--color-accent); padding-top: 16px; }
.numbered-row__num { font-size: 29px; font-weight: 700; color: var(--color-on-surface); display: block; margin-bottom: 8px; }
.numbered-row__title { font-size: 20px; font-weight: 600; margin: 0 0 8px; color: var(--color-on-surface); }
.numbered-row__body { font-size: 16px; color: var(--color-muted); margin: 0; }

/* --- Hizmet bölgeleri: ilk şehir listesini chip ızgarası olarak göster ---- */
.content--regions .blocks > ul.bullet-list:first-of-type {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-xl) 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
}
.content--regions .blocks > ul.bullet-list:first-of-type > li {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-on-surface);
  text-align: left;
  list-style: none;
  transition: border-color 150ms, color 150ms;
}
.content--regions .blocks > ul.bullet-list:first-of-type > li:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.content--regions .blocks > ul.bullet-list:first-of-type > li::before,
.content--regions .blocks > ul.bullet-list:first-of-type > li::marker {
  content: none;
  display: none;
}
@media (min-width: 600px) {
  .content--regions .blocks > ul.bullet-list:first-of-type {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 840px) {
  .content--regions .blocks > ul.bullet-list:first-of-type {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .content--regions .blocks > ul.bullet-list:first-of-type {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}
