/*
 * Şablon (public/assets/css/style.css) üzerine projeye özgü küçük katman.
 * Şablon SCSS'i yeniden derlenmez; buradaki kurallar yalnız ekleme/düzeltmedir.
 */

/* next/font Poppins (latin-ext) — şablonun "Poppins" sabit adlarını da karşılar */
html:root {
  --font-family-base: var(--font-poppins), "Poppins", sans-serif;
  --font-family-title: var(--font-poppins), "Poppins", sans-serif;
  --bs-body-font-family: var(--font-poppins), "Poppins", sans-serif;
  --bs-btn-font-family: var(--font-poppins), "Poppins", sans-serif;
}

/* Erişilebilirlik: içeriğe atla + görünür odak */
.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 100000;
  padding: 10px 16px;
  background: var(--bs-secondary);
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
}
.skip-link:focus {
  top: 8px;
  color: #fff;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #ffb703;
  outline-offset: 2px;
}
.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
}

/* Yazı logosu */
.text-logo {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.text-logo .tl-main {
  font-family: var(--font-family-title);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: 0.18em;
  color: var(--bs-secondary);
}
.text-logo .tl-main span {
  color: var(--bs-primary);
}
.text-logo .tl-sub {
  margin-top: 6px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bs-body-color);
}
.text-logo.is-light .tl-main {
  color: #fff;
}
.text-logo.is-light .tl-sub {
  color: rgba(255, 255, 255, 0.82);
}
.logo-header.text-logo-wrap {
  width: auto;
  min-width: 165px;
}
@media only screen and (max-width: 575px) {
  .text-logo .tl-main {
    font-size: 24px;
  }
  .text-logo .tl-sub {
    font-size: 8px;
  }
}

/* Yer tutucu yerine gerçek fotoğraflar: kapsayıcıyı doldur */
.cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Header'daki hızlı iletişim çubuğu ikonları */
.header-info-bar .icon-cell i {
  font-size: 26px;
  color: var(--bs-primary);
}

/* Mobil sabit iletişim düğmeleri (telefon + WhatsApp) */
.quick-contact {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quick-contact a {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  box-shadow: 0 6px 18px rgba(3, 27, 78, 0.25);
}
.quick-contact .qc-wa {
  background: #1a7f3c;
}
.quick-contact .qc-tel {
  background: var(--bs-secondary);
}

/* Panel/fallback HTML gövdesi */
.rich-text h2 {
  font-size: 1.5rem;
  margin: 1.75rem 0 0.75rem;
}
.rich-text h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.5rem;
}
.rich-text ul,
.rich-text ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}
.rich-text ul li {
  list-style: disc;
  margin-bottom: 0.35rem;
}
.rich-text ol li {
  list-style: decimal;
}
.rich-text a {
  text-decoration: underline;
}
.rich-text table {
  width: 100%;
  margin-bottom: 1rem;
}
.rich-text th,
.rich-text td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
}

/* Doğrudan cevap bloğu (hizmet sayfası) */
.direct-answer {
  border-left: 4px solid var(--bs-primary);
  background: var(--bs-light);
  padding: 20px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 30px;
}
.direct-answer h2 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

/* Süreç adımları */
.process-steps {
  counter-reset: step;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 30px;
}
.process-steps li {
  counter-increment: step;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}
.process-steps li::before {
  content: counter(step);
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--bs-primary);
  color: #fff;
  font-weight: 600;
  margin-bottom: 10px;
}
.process-steps h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.process-steps p {
  margin: 0;
  font-size: 15px;
}

/* Native <details> SSS (JS'siz, erişilebilir) — şablon akordeon görünümüne yakın */
.faq-list details {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 22px;
  font-weight: 600;
  color: var(--bs-heading-color);
  position: relative;
  min-height: 44px;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bs-light);
  color: var(--bs-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.faq-list details[open] summary::after {
  content: "–";
  background: var(--bs-primary);
  color: #fff;
}
.faq-list .faq-a {
  padding: 0 22px 18px;
}
.faq-list .faq-a p {
  margin: 0;
}

/* Formlar */
.form-hint {
  font-size: 14px;
  margin-top: 6px;
}
.form-error {
  color: #ffe1e1;
  font-size: 14px;
  margin-top: 6px;
  font-weight: 500;
}
.form-light-error {
  color: #b42318;
}
.form-status {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-weight: 500;
}
.form-status.is-ok {
  background: #e7f6ec;
  color: #14532d;
}
.form-status.is-err {
  background: #fdecec;
  color: #8a1c1c;
}
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-check-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.form-check-consent input {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin-top: 2px;
}
.form-wrapper.style-1 select.form-control {
  background: transparent;
  color: #fff;
}
.form-wrapper.style-1 select.form-control option {
  color: #031b4e;
}

/* Çerez banner'ı — sabit alt şerit, layout'u kaydırmaz (CLS 0) */
.consent-banner {
  position: fixed;
  inset: auto 16px 16px 16px;
  z-index: 100001;
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  color: var(--bs-body-color);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(3, 27, 78, 0.25);
  padding: 20px 22px;
}
.consent-banner h2 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.consent-banner p {
  font-size: 15px;
  margin-bottom: 14px;
}
.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.consent-actions .btn {
  min-height: 44px;
  flex: 1 1 140px;
}
.consent-cats {
  margin: 10px 0 14px;
}
.consent-cats label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}
.consent-cats input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
}

/* Harita facade */
/* Footer imza */
.agency-credit {
  font-size: 13px;
  opacity: 0.85;
}
.footer-link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  text-align: left;
}

/* Anket banner'ı */
.survey-banner {
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Şablonun ".logo-header a {display: table-cell}" kuralını yazı logosu için ez */
.logo-header a.text-logo,
.footer-logo a.text-logo,
.sidebar-header a.text-logo {
  display: inline-flex;
  flex-direction: column;
}
.logo-header.text-logo-wrap {
  min-width: 0;
}
.text-logo .tl-sub {
  white-space: normal;
  max-width: 190px;
  line-height: 1.25;
}
.header-right .btn {
  white-space: nowrap;
}
.process-steps {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.process-steps li h3 {
  font-size: 1.05rem !important;
  line-height: 1.35;
}
.process-steps li p {
  font-size: 15px;
  line-height: 1.5;
}

/* ---------------------------------------------------------------- Anket (mobil öncelikli) */
.survey-wrap {
  max-width: 820px;
  margin: 0 auto;
}
.survey-top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bs-light);
  padding: 12px 0;
  outline: none;
}
.survey-step {
  font-weight: 600;
  color: var(--bs-secondary);
  margin-bottom: 8px;
}
.survey-progress {
  height: 8px;
  background: #d4e2ee;
  border-radius: 8px;
  overflow: hidden;
}
.survey-progress span {
  display: block;
  height: 100%;
  background: var(--bs-primary);
  transition: width 0.3s;
}
.survey-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  margin: 16px 0;
}
.survey-card h2 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}
.survey-info {
  background: var(--bs-light);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 18px 0 10px;
}
.survey-q {
  border: 0;
  padding: 14px 0;
  margin: 0;
  border-bottom: 1px solid var(--border-color);
  min-width: 0;
}
.survey-q.has-error {
  background: #fff6f6;
  border-radius: var(--radius-sm);
  padding-left: 10px;
  padding-right: 10px;
}
.survey-label {
  display: block;
  font-weight: 500;
  color: var(--bs-heading-color);
  margin-bottom: 10px;
  font-size: 16px;
  float: none;
  width: auto;
}
.survey-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.survey-options.is-stacked {
  flex-direction: column;
}
.survey-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: #fff;
  font-size: 16px;
}
.survey-opt input {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  accent-color: var(--bs-secondary);
}
.survey-opt.is-checked {
  border-color: var(--bs-secondary);
  background: var(--bs-light);
}
.survey-options.is-days .survey-opt {
  flex: 0 0 auto;
}
.survey-options.is-days .survey-opt.is-wide {
  flex-basis: 100%;
}
.survey-num {
  max-width: 140px;
  display: inline-block;
}
.survey-duration {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.survey-duration label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.survey-duration .survey-num {
  width: 90px;
}
.survey-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 10px 0 30px;
}
.survey-nav .btn {
  min-height: 48px;
}
.survey-researcher div {
  display: flex;
  gap: 6px;
}
.survey-researcher dt {
  font-weight: 600;
}
.survey-researcher dd {
  margin: 0;
}
.survey-code {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--bs-secondary);
}

/* ---------------------------------------------------------------- Renk: hibrit kontrast (karargâh kararı B, 31 Eki)
 * İki değişken: --emek-accent (şablonun camgöbeği, YALNIZ dekoratif) ve --emek-strong (metin/buton/form zemini, AA 4.67:1).
 * Geri dönüş: --emek-strong'u #00BDE0 yapmak = şablonun orijinal görünümü. Tam (A) seçeneği: --bs-primary'yi de --emek-strong yap.
 */
html[data-theme-color="skin-1"] {
  --emek-accent: #00bde0;
  --emek-strong: #007f99;
  --emek-strong-hover: #00687e;
  --bs-link-color: var(--emek-strong);
  --bs-link-color-rgb: 0, 127, 153;
  --bs-link-hover-color: var(--emek-strong-hover);
}
.text-primary,
.breadcrumb-row .breadcrumb-item a,
.rich-text a,
.faq-a a {
  color: var(--emek-strong) !important;
}
.dz-bnr-inr .breadcrumb-row .breadcrumb-item a {
  color: #7fe3f5 !important; /* koyu banner üstünde açık ton (kontrast > 7:1) */
}
.btn-primary {
  --bs-btn-bg: var(--emek-strong);
  --bs-btn-border-color: var(--emek-strong);
  --bs-btn-hover-bg: var(--emek-strong-hover);
  --bs-btn-hover-border-color: var(--emek-strong-hover);
  --bs-btn-active-bg: var(--emek-strong-hover);
  --bs-btn-active-border-color: var(--emek-strong-hover);
  --bs-btn-disabled-bg: var(--emek-strong);
  background-color: var(--emek-strong);
  border-color: var(--emek-strong);
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--emek-strong-hover);
  border-color: var(--emek-strong-hover);
  color: #fff;
}
.form-wrapper .form-body.bg-primary,
.widget_contact.bg-primary,
.info-widget.bg-primary,
.service_menu_nav li.active > a,
.process-steps li::before,
.faq-list details[open] summary::after {
  background-color: var(--emek-strong) !important;
}
.hero-banner .hero-content h1 .text-primary {
  color: var(--emek-strong) !important;
}

/* ---------------------------------------------------------------- Yaşlı kitle: okunabilirlik (gövde ≥16 px, buton ≥18 px) */
body,
p,
li,
.form-hint,
.process-steps li p,
.survey-label,
.consent-banner p {
  font-size: max(16px, 1em);
}
.btn {
  font-size: 18px;
}
.btn.btn-square {
  font-size: 16px;
}
.form-floating > label {
  font-size: 16px;
}
.consent-banner a {
  color: var(--emek-strong);
  text-decoration: underline;
}
.quick-contact {
  left: auto;
  right: 16px;
  bottom: 84px;
}

/* Kalan kontrast düzeltmeleri (Lighthouse 31 Eki) */
/* Form etiketleri: TEK desen — etiket her durumda küçük ve üstte (boş/dolu/odak; metin alanı ve seçim kutusu aynı).
 * Yer tutucu şeffaf (Bootstrap floating-label sözleşmesi) → etiket ile üst üste binmez. Renk beyaz (koyu teal zeminde AA). */
.form-wrapper .form-floating > .form-control::placeholder {
  color: transparent !important;
}
.form-wrapper .form-floating.floating-underline > label,
.form-wrapper .form-floating.floating-underline > .form-control:focus ~ label,
.form-wrapper .form-floating.floating-underline > .form-control:not(:placeholder-shown) ~ label {
  color: #fff !important;
  opacity: 1 !important;
  font-size: 13px;
  font-weight: 600;
  transform: translateY(-22px);
}
.form-wrapper .form-title span {
  color: #ffe066;
}
.icon-bx-wraper.style-8 .icon-content a {
  color: var(--emek-strong);
}
.icon-bx-wraper.style-8.active .icon-content a,
.icon-bx-wraper.style-8:hover .icon-content a {
  color: inherit;
}
.text-muted {
  color: #5b6576 !important;
}
.form-wrapper.style-1 .form-body .title-head .form-title span {
  color: #fff !important;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
  text-decoration-color: var(--emek-accent);
}
main :is(p, li, td, dd) > a:not(.btn) {
  color: var(--emek-strong);
}
main .bg-light :is(p, li) > a:not(.btn),
.icon-bx-wraper.style-8 .icon-content a {
  color: var(--emek-strong-hover);
}
main :is(.bg-secondary, .bg-primary, .overlay-secondary-dark, .overlay-primary-dark, .form-body) :is(p, li) > a:not(.btn) {
  color: #fff;
}
main :is(p, td, dd) > a:not(.btn),
main :is(.rich-text, .content-item, .list-check) li > a:not(.btn),
main nav > a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
main nav > a {
  color: var(--emek-strong);
}
/* Anket: görünür giriş alanları (şablonun alt çizgili/şeffaf form-control stili yerine) */
.survey-wrap .form-control {
  border: 1px solid #9fb0c3;
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  min-height: 48px;
  font-size: 16px;
  color: var(--bs-heading-color);
}
.survey-wrap .form-control:focus {
  border-color: var(--emek-strong);
  box-shadow: 0 0 0 3px rgba(0, 127, 153, 0.2);
}
body:has(.survey-wrap) .quick-contact {
  display: none;
}
@media (max-width: 575px) {
  .quick-contact a {
    width: 46px;
    height: 46px;
    font-size: 21px;
  }
}
.survey-wa-btn {
  min-height: 56px;
  font-size: 20px;
  background-color: #1a7f3c;
  border-color: #1a7f3c;
}
.survey-wa-notes {
  padding-left: 1.1rem;
}
.survey-wa-notes li {
  list-style: disc;
  margin-bottom: 4px;
}
.survey-wa-consent {
  background: #eef8f1;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

/* Marka logosu (F2 kelime işareti, sabit oran → CLS 0) */
.brand-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.brand-logo {
  height: 52px;
  width: auto;
}
.logo-header.text-logo-wrap {
  width: auto;
  min-width: 0;
  height: 80px;
}
.footer-logo .brand-logo,
.sidebar-header .brand-logo {
  height: 56px;
}
@media only screen and (max-width: 575px) {
  .brand-logo {
    height: 40px;
  }
  .logo-header.text-logo-wrap {
    height: 65px;
  }
}

/* ---------------------------------------------------------------- Footer: tek parça görsel + koyu katman (Albay geri bildirimi 31 Eki)
 * Görsel tekrar etmez (cover/no-repeat/center); üstünde lacivert→siyah katman, metinler açık renk (AA ≥ 4.5:1). */
.site-footer.footer-koyu {
  position: relative;
  background-color: #0a1730;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  color: #e6edf6;
}
.site-footer.footer-koyu::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5, 20, 45, 0.78) 0%, rgba(3, 12, 30, 0.88) 60%, rgba(2, 8, 20, 0.94) 100%);
}
.site-footer.footer-koyu > * {
  position: relative;
}
.site-footer.footer-koyu :is(h2, h3, h4, h5, .title, .footer-title, .dz-title) {
  color: #ffffff;
}
.site-footer.footer-koyu :is(p, li, .text, .copyright-text),
.site-footer.footer-koyu span:not(.btn span) {
  color: #d5e0ec;
}
.site-footer.footer-koyu a:not(.btn),
.site-footer.footer-koyu .text-body,
.site-footer.footer-koyu .footer-link-btn {
  color: #e6edf6 !important;
}
.site-footer.footer-koyu a:not(.btn):hover,
.site-footer.footer-koyu .footer-link-btn:hover {
  color: #7fe3f5 !important;
}
.site-footer.footer-koyu .icon-bx-wraper.style-1 .icon-bx {
  background-color: rgba(255, 255, 255, 0.12) !important;
}
.site-footer.footer-koyu :is(.fh-inner, .fm-inner, .fb-inner, .footer-head, .footer-middle, .footer-bottom) {
  border-color: rgba(255, 255, 255, 0.16) !important;
}
.site-footer.footer-koyu .list-hover1 li a span::before,
.site-footer.footer-koyu .list-hover1 li a::before {
  background-color: #7fe3f5;
}

/* ---------------------------------------------------------------- Hero yüksekliği (31 Eki)
   Şablonun sabit yüksekliği (800–900 px) uzun dekupe insan görseli içindi; görsel sütunu alta yaslıydı.
   540 px kare çerçevede bu, header altında ~200 px boşluk bırakıyordu → yükseklik içeriğe göre,
   satır dikey ortalı (page.tsx). ≥1200'de alt dolgu, mutlak konumlu telefon kutusuna (.item5) yer açar. */
@media (min-width: 992px) {
  .hero-banner.style-1 {
    height: auto;
    padding-top: 40px;
    padding-bottom: 48px;
  }
}
@media (min-width: 1200px) {
  .hero-banner.style-1 {
    padding-bottom: 150px;
  }
}

