/* ================================================================
   PATCH 022 - Modern Hizmetler Detay, Ferah Footer & Galeri Lightbox
   ================================================================ */

/* --- 1. HİZMET DETAY SAYFASI (SERVICE DETAIL) --- */
.service-page-wrap {
  padding: 40px 0 80px;
  background: #f6f8f8;
}

.service-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: #64748b !important;
  margin-bottom: 24px;
}
.service-breadcrumb a {
  color: #334155 !important;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.service-breadcrumb a:hover {
  color: #b48328 !important;
}
.service-breadcrumb span.sep {
  opacity: 0.5;
}
.service-breadcrumb span.current {
  color: #b48328 !important;
  font-weight: 700;
}

.service-layout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  align-items: start;
}

/* Sol Ana Kolon */
.service-main-content {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05) !important;
}

.service-featured-img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 30px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.service-rich-content .lead-text {
  font-size: 18px !important;
  line-height: 1.85 !important;
  color: #1e293b !important;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e2e8f0 !important;
  font-weight: 500;
}

.service-rich-content h3 {
  font-size: 23px !important;
  margin: 36px 0 20px !important;
  color: #0f2438 !important;
  letter-spacing: -0.02em;
  font-weight: 800 !important;
  display: flex;
  align-items: center;
  gap: 12px;
}
.service-rich-content h3:before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 24px;
  background: linear-gradient(180deg, #d7a84f, #f1d185);
  border-radius: 4px;
}

/* 4'lü Özellik Grid */
.service-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 24px 0 36px;
}
.s-feat-card {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px;
  padding: 24px;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.s-feat-card:hover {
  transform: translateY(-3px);
  border-color: #d7a84f !important;
  box-shadow: 0 12px 28px rgba(215, 168, 79, 0.12) !important;
  background: #ffffff !important;
}
.s-feat-card .feat-num {
  font-size: 24px;
  font-weight: 800;
  color: #d7a84f;
  display: block;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.s-feat-card h4 {
  margin: 0 0 10px;
  font-size: 17px !important;
  color: #0f2438 !important;
  font-weight: 700;
  line-height: 1.4;
}
.s-feat-card p {
  margin: 0;
  font-size: 14px !important;
  line-height: 1.65 !important;
  color: #475569 !important;
}

/* Süreç Adımları (Process Steps) */
.process-steps {
  list-style: none;
  padding: 0;
  margin: 20px 0 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.process-steps li {
  background: #f8fafc !important;
  border-left: 4px solid #d7a84f !important;
  border-top: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 20px;
  border-radius: 0 14px 14px 0;
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: #334155 !important;
}
.process-steps li strong {
  color: #b48328 !important;
  font-weight: 700;
  margin-right: 6px;
}

/* Sıkça Sorulan Sorular (FAQ) */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0 30px;
}
.faq-item {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px;
  padding: 20px 24px;
}
.faq-item h4 {
  margin: 0 0 10px;
  font-size: 16px !important;
  color: #0f2438 !important;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.faq-item h4:before {
  content: "?";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(215, 168, 79, 0.2);
  color: #d7a84f;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.faq-item p {
  margin: 0;
  font-size: 14.5px !important;
  line-height: 1.7 !important;
  color: #475569 !important;
  padding-left: 34px;
}

/* Sağ Sidebar */
.service-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.05) !important;
}
.sidebar-card h3 {
  margin: 0 0 18px;
  font-size: 18px !important;
  color: #0f2438 !important;
  font-weight: 800;
  letter-spacing: -0.02em;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0 !important;
}

/* Sidebar Hizmet Menüsü */
.sidebar-services-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sidebar-services-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 14px;
  color: #334155 !important;
  background: #f8fafc;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  font-weight: 500;
}
.sidebar-services-nav a:hover {
  background: #f1f5f9 !important;
  color: #b48328 !important;
  transform: translateX(3px);
}
.sidebar-services-nav a.active {
  background: #fff9ed !important;
  color: #b48328 !important;
  font-weight: 700 !important;
  border-color: #fbd38d !important;
}

/* Hızlı Teklif / İletişim Kutusu */
.sidebar-contact-box {
  background: linear-gradient(135deg, #0b2340 0%, #071b33 100%) !important;
  border: 1px solid rgba(215, 168, 79, 0.3) !important;
  border-radius: 20px;
  padding: 28px 22px;
  text-align: center;
  color: #ffffff !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15) !important;
}
.sidebar-contact-box .icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d7a84f, #f1d185);
  color: #071b33;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}
.sidebar-contact-box h4 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #ffffff !important;
}
.sidebar-contact-box p {
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8) !important;
}
.sidebar-contact-box .btn-block {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  text-align: center;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

/* --- 2. FERAH FOOTER & LOGO DÜZELTMESİ --- */
.site-footer.premium-footer {
  padding-top: 50px !important;
}

.premium-footer .footer-cta {
  padding: 34px 40px !important;
  margin-bottom: 40px !important;
}

/* Logo Düzeltmesi: Beyaz kutu kesinlikle iptal */
.premium-footer .footer-logo,
.footer-logo {
  height: auto !important;
  background: transparent !important;
  background-color: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin-bottom: 18px !important;
  display: block !important;
  box-shadow: none !important;
  border: none !important;
}

.premium-footer .footer-logo img,
.footer-logo img {
  max-width: 250px !important;
  height: 50px !important;
  width: auto !important;
  object-fit: contain !important;
  background: transparent !important;
  filter: none !important;
  border: none !important;
}

/* Karanlık modda logo-dark (açık renkli logo), aydınlık modda logo-light (koyu renkli logo) */
.footer-logo-dark {
  display: block !important;
}
.footer-logo-light {
  display: none !important;
}
body.light-mode .footer-logo-dark {
  display: none !important;
}
body.light-mode .footer-logo-light {
  display: block !important;
}

/* Footer Grid: Ferah sütunlar, sıkışma giderildi */
.premium-footer .footer-grid {
  display: grid !important;
  grid-template-columns: 1.5fr 1fr 1.15fr 1.35fr !important;
  gap: 28px !important;
  padding: 10px 0 34px !important;
  align-items: stretch !important;
}

.premium-footer .footer-brand-col,
.premium-footer .footer-card {
  padding: 24px 26px !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}
body.light-mode .premium-footer .footer-brand-col,
body.light-mode .premium-footer .footer-card {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(7, 27, 51, 0.08) !important;
}

.premium-footer .footer-desc {
  font-size: 13.5px !important;
  line-height: 1.7 !important;
  color: rgba(255, 255, 255, 0.72) !important;
  margin-bottom: auto !important;
  padding-bottom: 16px !important;
}

.premium-footer .footer-card h3 {
  font-size: 18px !important;
  margin-bottom: 16px !important;
  position: relative;
  padding-bottom: 10px;
}
.premium-footer .footer-card h3:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: #d7a84f;
  border-radius: 2px;
}

.premium-footer .footer-card li {
  margin-bottom: 9px !important;
}
.premium-footer .footer-card a {
  font-size: 13.5px !important;
  gap: 8px !important;
}

.premium-footer .footer-contact-item {
  padding: 11px 13px !important;
  margin-bottom: 10px !important;
  gap: 12px !important;
  border-radius: 14px !important;
}
.premium-footer .footer-contact-item .icon {
  width: 36px !important;
  height: 36px !important;
  flex: 0 0 36px !important;
  font-size: 15px !important;
  border-radius: 10px !important;
}
.premium-footer .footer-contact-item strong {
  font-size: 12px !important;
}
.premium-footer .footer-contact-item a,
.premium-footer .footer-contact-item span {
  font-size: 13px !important;
}

/* --- 3. GALERİ LIGHTBOX MODAL --- */
.gallery-lightbox-trigger {
  cursor: pointer;
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}
.gallery-lightbox-trigger img {
  transition: transform 0.4s ease;
  display: block;
  width: 100%;
}
.gallery-lightbox-trigger:hover img {
  transform: scale(1.06);
}
.gallery-lightbox-trigger:after {
  content: "🔍";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: rgba(7, 27, 51, 0.45);
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-lightbox-trigger:hover:after {
  opacity: 1;
}

/* Lightbox Modal Yapısı */
.site-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.site-gallery-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.gallery-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 15, 25, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.gallery-modal-dialog {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-modal-body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gallery-modal-body img {
  max-width: 88vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.site-gallery-modal.is-active .gallery-modal-body img {
  transform: scale(1);
}

.gallery-modal-caption {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: #ffffff;
  font-size: 14px;
  padding: 0 8px;
}
.gallery-modal-count {
  background: rgba(215, 168, 79, 0.25);
  color: #f1d185;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
}

.gallery-modal-close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 20px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.gallery-modal-close:hover {
  background: #d7a84f;
  color: #071b33;
  transform: rotate(90deg);
}

.gallery-modal-prev,
.gallery-modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 32px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  user-select: none;
}
.gallery-modal-prev {
  left: -70px;
}
.gallery-modal-next {
  right: -70px;
}
.gallery-modal-prev:hover,
.gallery-modal-next:hover {
  background: #d7a84f;
  color: #071b33;
  transform: translateY(-50%) scale(1.1);
}

/* Responsive Düzenlemeler */
@media(max-width: 1080px) {
  .service-layout-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .service-sidebar {
    position: static;
  }
  .premium-footer .footer-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .gallery-modal-prev {
    left: 10px;
  }
  .gallery-modal-next {
    right: 10px;
  }
  .gallery-modal-close {
    top: 10px;
    right: 10px;
  }
}

@media(max-width: 720px) {
  .service-features-grid {
    grid-template-columns: 1fr;
  }
  .service-main-content {
    padding: 24px;
    border-radius: 18px;
  }
  .premium-footer .footer-grid {
    grid-template-columns: 1fr !important;
  }
  .gallery-modal-prev,
  .gallery-modal-next {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
}
