/* ==========================================================================
   Teknik Servis - Özel Stil Dosyası
   Tailwind CDN'e ek olarak özel bileşen stilleri burada tanımlanır.
   ========================================================================== */

/* ---------- CSS Değişkenleri (Renk Paleti) ---------- */
:root {
  --primary: #E8704F;          /* Ana turuncu */
  --primary-dark: #D55D3E;     /* Koyu turuncu (hover) */
  --primary-light: #F2A082;    /* Açık turuncu */
  --secondary: #1E3A5F;        /* Lacivert (başlık / header) */
  --secondary-dark: #0F2540;   /* Koyu lacivert */
  --secondary-light: #2C4E7A;  /* Açık lacivert */
  --coral: #C97A5E;            /* Somon tonu (hero overlay) */
  --cream: #FFF8F3;            /* Krem arka plan */
  --text-dark: #1E293B;
  --text-light: #64748B;
  --border: #E2E8F0;
}

/* ---------- Temel Tipografi ---------- */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: 'Outfit', 'Inter', sans-serif;
  color: var(--secondary);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ---------- Bölüm Başlığı Altı Süsleme ---------- */
.section-title {
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
}
.section-title.left::after { left: 0; transform: none; }

/* ---------- Buton Stilleri ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
  line-height: 1;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(232,112,79,.55);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.85);
}
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-secondary {
  background: var(--secondary);
  color: #fff;
}
.btn-secondary:hover { background: var(--secondary-dark); transform: translateY(-2px); }

/* ---------- Header (Sticky) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 1px 0 0 rgba(15,37,64,.06);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -12px rgba(15,37,64,.2); }

.nav-link {
  position: relative;
  font-weight: 500;
  color: var(--secondary);
  padding: 0.5rem 0;
  transition: color .2s;
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* ---------- Mobil Menü ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15,37,64,.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 85%;
  max-width: 340px;
  background: #fff;
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
}
.mobile-menu.is-open .mobile-menu__panel { transform: translateX(0); }
.mobile-menu__link {
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  color: var(--secondary);
  transition: background .15s;
}
.mobile-menu__link:hover, .mobile-menu__link.active {
  background: var(--cream);
  color: var(--primary);
}

/* ---------- Hero (Anasayfa) ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--coral) 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.15), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(30,58,95,.25), transparent 50%);
  pointer-events: none;
}

/* Hero slider */
.hero-slider { position: relative; }
.hero-slide {
  display: none;
  animation: heroFade .6s ease;
}
.hero-slide.is-active { display: block; }
@keyframes heroFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.5rem;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: all .2s ease;
  border: 0;
  padding: 0;
}
.hero-dot.is-active {
  width: 28px;
  background: #fff;
}

/* ---------- Hizmet Kartları ---------- */
.service-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid var(--border);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(15,37,64,.25);
  border-color: transparent;
}
.service-card__img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--cream);
}
.service-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.service-card:hover .service-card__img img { transform: scale(1.06); }
.service-card__body { padding: 1.25rem 1.25rem 1.5rem; }
.service-card__title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}
.service-card__text {
  color: var(--text-light);
  font-size: 0.925rem;
  line-height: 1.55;
}
.service-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}
.service-card:hover .service-card__cta i { transform: translateX(4px); }
.service-card__cta i { transition: transform .2s; }

/* ---------- "Nasıl Çalışırız" adım kartları ---------- */
.step-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.75rem 1.5rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(15,37,64,.2);
}
.step-card__num {
  position: absolute;
  top: -18px;
  left: 1.5rem;
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  box-shadow: 0 8px 20px -8px rgba(232,112,79,.5);
}
.step-card__icon {
  width: 54px; height: 54px;
  border-radius: 12px;
  background: var(--cream);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  position: relative;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  overflow: hidden;
}
.cta-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 50%, rgba(232,112,79,.25), transparent 50%);
  pointer-events: none;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--secondary-dark);
  color: #cbd5e1;
}
.site-footer a { color: #cbd5e1; transition: color .15s; }
.site-footer a:hover { color: #fff; }
.footer-title {
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ---------- İletişim Kartları ---------- */
.contact-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -20px rgba(15,37,64,.2);
}
.contact-card__icon {
  flex: 0 0 52px;
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
}

/* ---------- Form ---------- */
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: #fff;
  color: var(--text-dark);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color .15s, box-shadow .15s;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232,112,79,.15);
}
.form-label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--secondary);
  margin-bottom: 0.4rem;
}

/* ---------- Sayfa Başlığı (Alt Sayfalarda) ---------- */
.page-header {
  position: relative;
  padding: 4rem 0 4rem;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  color: #fff;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 50%, rgba(232,112,79,.28), transparent 45%);
  pointer-events: none;
}
.page-header h1 {
  color: #fff;
  position: relative;
  z-index: 1;
}
.breadcrumb {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: rgba(255,255,255,.75);
}
.breadcrumb a { color: rgba(255,255,255,.75); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb__sep { color: rgba(255,255,255,.4); }

/* ---------- Yasal Sayfa Prose ---------- */
.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--secondary);
}
.legal-content h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--secondary);
}
.legal-content p { margin-bottom: 1rem; line-height: 1.75; color: var(--text-light); }
.legal-content ul { list-style: disc; margin-left: 1.25rem; margin-bottom: 1rem; color: var(--text-light); }
.legal-content li { margin-bottom: 0.4rem; line-height: 1.7; }

/* ---------- Scroll-To-Top ---------- */
.scroll-top {
  position: fixed;
  right: 1rem; bottom: 1rem;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px -10px rgba(232,112,79,.6);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all .25s;
  z-index: 40;
}
.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top:hover { background: var(--primary-dark); }

/* ---------- Yardımcı ---------- */
.text-primary-custom { color: var(--primary); }
.bg-primary-custom { background: var(--primary); }
.bg-cream { background: var(--cream); }

/* ---------- Responsive ince ayarlar ---------- */
@media (max-width: 640px) {
  .btn { padding: 0.8rem 1.25rem; font-size: 0.9rem; }
  .page-header { padding: 3rem 0 2.5rem; }
}


/* ==========================================================================
   CTA Banner - tek başına çalışır
   ========================================================================== */
.cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  padding: 2.5rem 1.75rem;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  box-shadow: 0 15px 40px -15px rgba(15,37,64,.35);

  /* içerik yerleşimi */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .cta-banner {
    flex-direction: row;
    align-items: center;
    padding: 3rem 3rem;
    gap: 2.5rem;
  }
  

	
	    .sticky-call-bar {
        bottom: 15px;
        right: 15px;
        left: 15px;
        padding: 14px 20px;
        font-size: 0.9rem;
        justify-content: center;
    }
    
    .call-bar-text {
        font-size: 0.85rem;
    }
}

@media (min-width: 1024px) {
  .cta-banner {
    padding: 3.5rem 4rem;
  }
}

/* turuncu radyal parıltı (sağ tarafa) */
.cta-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 50%, rgba(232,112,79,.30), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* içerik parıltının üzerinde kalsın */
.cta-banner > * {
  position: relative;
  z-index: 1;
}

.cta-banner h2 { color: #fff; }
.cta-banner p  { color: rgba(255,255,255,.85); }

/* Butonlar --------------------------------------------------------------- */
.cta-banner .btn { white-space: nowrap; }

.btn-white {
  background: #fff;
  color: var(--primary);
  border: 2px solid #fff;
}
.btn-white:hover {
  background: var(--cream, #FFF8F3);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.7);
}
.btn-outline-white:hover {
  background: #fff;
  color: var(--secondary);
  border-color: #fff;
  transform: translateY(-2px);
}

/* Mobilde buton grubu tam genişlik */
@media (max-width: 640px) {
  .cta-banner .flex.flex-wrap { width: 100%; }
  .cta-banner .btn { flex: 1 1 auto; justify-content: center; }
        .sticky-call-bar {
        bottom: 10px;
        right: 10px;
        left: 10px;
        padding: 12px 16px;
        font-size: 0.8rem;
    }
    
    .call-bar-text {
        font-size: 0.75rem;
    }
    
    .sticky-call-bar i {
        font-size: 1rem;
    }
}

/* ===== STICKY CALL BAR ===== */
.sticky-call-bar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--secondary-dark);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.sticky-call-bar:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.5);
    color: white;
}

.sticky-call-bar i {
    font-size: 1.2rem;
    animation: ring 2s infinite;
}

.call-bar-text {
    white-space: nowrap;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(255, 107, 53, 0.6);
    }
}

@keyframes ring {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30% {
        transform: rotate(-10deg);
    }
    20%, 40% {
        transform: rotate(10deg);
    }
}