/* ==========================================================================
   Kaya Oto Elektrik — Yeniden kullanılabilir bileşenler
   (hero, hizmet kartları, güven şeridi — birden fazla sayfada kullanılır)
   ========================================================================== */

/* ---- Hero ---- */

.hero {
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: #fff;
  padding: 72px 0 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.badge-urgent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(242, 153, 74, 0.16);
  color: var(--amber-500);
  border: 1px solid rgba(242, 153, 74, 0.35);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
}

.hero h1 {
  color: #fff;
  font-size: 46px;
  line-height: 1.14;
  margin-bottom: 18px;
}
.hero h1 span { color: var(--blue-500); }

.hero-sub {
  color: rgba(255,255,255,0.68);
  font-size: 17px;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 14px; margin-bottom: 40px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.14);
  flex-wrap: wrap;
}
.hero-stats div p:first-child {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 500;
  color: #fff;
}
.hero-stats div p:last-child {
  font-size: 12.5px;
  color: rgba(255,255,255,0.55);
  margin-top: 2px;
}

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3.4;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .img-placeholder { color: rgba(255,255,255,0.35); }
.img-placeholder i { font-size: 30px; }

.hero-media-badge {
  position: absolute;
  bottom: 20px; left: 20px;
  background: #fff;
  color: var(--navy-900);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 600;
}
.hero-media-badge i { color: var(--whatsapp); font-size: 20px; }

/* Küçük hero varyantı (iç sayfalar için) */
.hero.hero-compact { padding: 56px 0 64px; }
.hero.hero-compact .hero-grid { grid-template-columns: 1fr; text-align: left; }
.hero.hero-compact h1 { font-size: 38px; }
.hero-breadcrumb {
  font-size: 13px; color: rgba(255,255,255,0.55); margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px;
}
.hero-breadcrumb a { color: rgba(255,255,255,0.8); }
.hero-breadcrumb a:hover { color: #fff; }

/* ---- Hizmet kartları ---- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.service-media {
  aspect-ratio: 16/10;
  background: var(--blue-50);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-500);
}
.service-media img { width: 100%; height: 100%; object-fit: cover; }

.service-body { padding: 26px; }

.service-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
  margin-bottom: 18px;
}
.icon-amber { background: rgba(242,153,74,0.14); color: var(--amber-600); }
.icon-blue  { background: var(--blue-100); color: var(--blue-600); }
.icon-navy  { background: rgba(10,37,64,0.08); color: var(--navy-800); }

.service-body h3 { font-size: 19px; margin-bottom: 10px; }
.service-body p { color: var(--ink-muted); font-size: 14.5px; margin-bottom: 18px; }

.service-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--blue-600);
}
.service-link i { font-size: 12px; transition: transform 0.15s; }
.service-card:hover .service-link i { transform: translateX(3px); }

/* ---- Güven şeridi ---- */

.trust-strip {
  background: var(--navy-900);
  color: #fff;
  padding: 56px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.trust-item { display: flex; gap: 16px; align-items: flex-start; }
.trust-item i { font-size: 22px; color: var(--amber-500); margin-top: 2px; }
.trust-item h4 { color: #fff; font-size: 15.5px; margin-bottom: 4px; }
.trust-item p { color: rgba(255,255,255,0.6); font-size: 13.5px; margin: 0; }

/* ---- Adım listesi (nasıl çalışır) ---- */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step-card { position: relative; padding-top: 8px; }
.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--blue-600);
  font-weight: 500;
  margin-bottom: 14px;
  display: block;
}
.step-card h3 { font-size: 18px; margin-bottom: 8px; }
.step-card p { color: var(--ink-muted); font-size: 14.5px; margin: 0; }
.step-connector {
  position: absolute; top: 12px; left: 100%; width: 28px; height: 1px;
  background: var(--border);
}

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

.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  color: var(--navy-900); text-align: left;
}
.faq-question i { color: var(--blue-600); transition: transform 0.2s; flex-shrink: 0; margin-left: 16px; }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
  padding: 0 24px;
}
.faq-item.open .faq-answer { max-height: 240px; padding: 0 24px 20px; }
.faq-answer p { color: var(--ink-muted); font-size: 14.5px; margin: 0; line-height: 1.7; }

/* ---- İçerik / blog kartları ---- */

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.content-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.content-media {
  aspect-ratio: 16/10;
  background: var(--blue-50);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-500);
}
.content-media img { width: 100%; height: 100%; object-fit: cover; }
.content-body { padding: 22px; }
.content-tag {
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--blue-600); margin-bottom: 10px; display: block;
}
.content-body h3 { font-size: 16.5px; margin-bottom: 8px; line-height: 1.35; }
.content-body p { color: var(--ink-muted); font-size: 13.5px; margin: 0 0 14px; }
.content-read { font-size: 13.5px; font-weight: 600; color: var(--blue-600); display: inline-flex; align-items: center; gap: 6px; }
.content-read i { font-size: 11px; transition: transform 0.15s; }
.content-card:hover .content-read i { transform: translateX(3px); }

/* ---- Makale gövdesi (prose) ---- */

.article-wrap { max-width: 760px; margin: 0 auto; }
.article-meta {
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; color: var(--ink-faint); margin-bottom: 18px;
}
.article-cover {
  aspect-ratio: 16/7; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--blue-50); color: var(--blue-500); margin-bottom: 36px;
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.prose h2 { font-size: 22px; margin: 40px 0 16px; }
.prose h3 { font-size: 18px; margin: 28px 0 12px; }
.prose p { font-size: 15.5px; color: var(--ink-muted); line-height: 1.8; margin: 0 0 18px; }
.prose ul { margin: 0 0 18px; padding-left: 20px; color: var(--ink-muted); font-size: 15.5px; line-height: 1.8; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }
.article-cta {
  margin-top: 44px; padding: 28px; border-radius: var(--radius-lg);
  background: var(--blue-50); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.article-cta h4 { font-size: 17px; margin-bottom: 4px; }
.article-cta p { color: var(--ink-muted); font-size: 13.5px; margin: 0; }

/* ---- Blog / makale meta (yazar, tarih) ---- */

.article-author {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 28px;
}
.author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue-100); color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}
.author-info p:first-child { font-size: 13.5px; font-weight: 600; color: var(--ink); margin: 0; }
.author-info p:last-child { font-size: 12.5px; color: var(--ink-faint); margin: 2px 0 0; }

/* ---- İlgili yazılar ---- */

.related-posts { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border); }
.related-posts h3 { font-size: 18px; margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.related-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 14px; transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.related-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.related-icon {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  background: var(--blue-50); color: var(--blue-600);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.related-card-body p:first-child { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--blue-600); margin: 0 0 4px; }
.related-card-body p:last-child { font-size: 13.5px; font-weight: 600; color: var(--ink); margin: 0; line-height: 1.4; }

/* ---- Rehber ana sayfa: öne çıkan yazı ---- */

.featured-post {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--navy-900); border-radius: var(--radius-lg);
  overflow: hidden; margin-bottom: 56px;
}
.featured-media {
  background: rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.3); min-height: 260px;
}
.featured-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.featured-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(59,130,246,0.16); color: var(--blue-500);
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 5px 12px; border-radius: var(--radius-pill); margin-bottom: 16px; width: fit-content;
}
.featured-body h2 { color: #fff; font-size: 24px; line-height: 1.3; margin-bottom: 12px; }
.featured-body p { color: rgba(255,255,255,0.62); font-size: 14.5px; margin: 0 0 20px; }
.featured-body .content-read { color: #fff; }

.category-nav { display: flex; gap: 10px; margin-bottom: 36px; flex-wrap: wrap; }
.category-pill {
  font-size: 13.5px; font-weight: 500; padding: 9px 18px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--border); color: var(--ink-muted);
  font-family: var(--font-body); cursor: pointer; transition: all 0.15s ease;
}
.category-pill:hover { border-color: var(--border-strong, var(--border)); color: var(--ink); }
.category-pill.is-current { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }

/* ---- Responsive ---- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; aspect-ratio: 16/9; }
  .services-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-connector { display: none; }
  .content-grid { grid-template-columns: 1fr 1fr; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-media { min-height: 180px; }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .hero h1 { font-size: 32px; }
  .hero.hero-compact h1 { font-size: 28px; }
  .hero-stats { gap: 20px 32px; }
  .trust-grid { grid-template-columns: 1fr; }
}
