/* ==========================================================================
   Kaptan teması — Webkit CMS ekleri
   style.css (statik tasarım) üzerine: iç sayfalar, CMS bileşenleri
   (form, çerez, sayfalama), panelden eklenebilen ek bloklar.
   Yalnızca style.css token'ları kullanılır (--primary, --gold, --line …).
   ========================================================================== */

/* ---------- Bootstrap (Vite paketi) uyumu ---------- */

:root {
  --bs-body-font-family: var(--font-sans);
  --bs-body-color: var(--gray);
  --bs-link-color: var(--primary);
  --bs-link-hover-color: var(--primary-dark);
  --bs-border-radius: 0;
}

.btn-primary {
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary-dark);
  --bs-btn-hover-border-color: var(--primary-dark);
  --bs-btn-active-bg: var(--primary-dark);
  --bs-btn-active-border-color: var(--primary-dark);
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.form-check-input:focus,
.form-control:focus {
  border-color: var(--bronze);
  box-shadow: 0 0 0 .2rem rgba(176, 141, 87, .2);
}

/* ---------- Hero başlığı: metin panelden/dile göre değişir → taşmak yerine kaydır ---------- */

@media (min-width: 576px) {
  .hero-title .line-inner {
    white-space: normal;
    text-wrap: balance;
  }
}

/* ---------- Logo (tek kaynak: panelden yüklenen koyu logo) ---------- */

.brand-logo--invert { filter: brightness(0) invert(1); }

.footer-logo {
  display: block;
  width: auto;
  height: 72px;
}

/* ---------- Header: alt menü ---------- */

.main-nav li { position: relative; }

.sub-nav {
  position: absolute;
  top: 100%;
  left: -1.25rem;
  min-width: 240px;
  display: block !important;
  padding: .75rem 0 !important;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px -30px rgba(16, 27, 41, .35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .45s var(--ease-out), visibility 0s linear .45s;
}

.main-nav li:hover > .sub-nav,
.main-nav li:focus-within > .sub-nav {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.sub-nav a {
  display: block;
  padding: .55rem 1.25rem;
  font-size: .875rem;
  color: var(--primary);
}

.sub-nav a:hover { background: var(--off-white); }

.mobile-nav-sub a {
  padding: .45rem 0 .45rem 2.6rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: rgba(255, 255, 255, .75);
}

/* ---------- İç sayfa başlığı ---------- */

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(56px, 8vw, 112px)) 0 clamp(56px, 7vw, 96px);
  background: radial-gradient(ellipse at 70% 30%, #1F3349 0%, var(--primary-dark) 62%);
  color: var(--white);
}

.page-hero-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, .06);
}

.page-hero-title {
  max-width: 18em;
  margin-bottom: 1.75rem;
  font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -.015em;
  color: var(--white);
}

.page-crumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.page-crumb li + li::before {
  content: "/";
  margin-right: .75rem;
  color: var(--gold-light);
}

.page-crumb a { color: rgba(255, 255, 255, .65); }

.page-crumb a:hover { color: var(--white); }

.page-crumb [aria-current] { color: var(--white); }

/* ---------- Genel bölüm yardımcıları ---------- */

.section--compact {
  padding-top: clamp(56px, 7vw, 104px);
  padding-bottom: clamp(56px, 7vw, 104px);
}

.section--compact + .section--compact { padding-top: 0; }

.section-title--sm { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }

.prose {
  font-size: 1.0625rem;
  line-height: 1.85;
}

.prose h2, .prose h3, .prose h4 {
  margin: 2.5rem 0 1rem;
  line-height: 1.2;
}

.prose h2 { font-size: 2rem; }
.prose h3 { font-size: 1.625rem; }

.prose ul, .prose ol { margin: 0 0 1.25rem; padding-left: 1.25rem; }

.prose li { margin-bottom: .4rem; }

.prose li::marker { color: var(--bronze); }

.prose blockquote {
  margin: 2rem 0;
  padding-left: 1.5rem;
  border-left: 1px solid var(--gold);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--primary);
}

.prose img { margin: 2rem 0; }

.prose a,
.about-since a,
.founder-bio a,
.check label a {
  color: var(--primary);
  font-weight: 500;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 100% 100%;
  background-repeat: no-repeat;
  transition: background-size .5s var(--ease-out);
}

.prose a:hover,
.about-since a:hover,
.founder-bio a:hover,
.check label a:hover { background-size: 0 1px; }

.founder-bio p:last-child { margin-bottom: 0; }

.person-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

/* ---------- CMS formu (<x-kurumsal-form>) ---------- */

.contact-form { position: relative; }

.form-alert {
  margin-bottom: 1.75rem;
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--primary);
  background: var(--white);
  font-size: .95rem;
  color: var(--primary);
}

.form-alert--error {
  border-left-color: var(--error);
  color: var(--error);
}

.form-heading {
  margin: .5rem 0 1.25rem;
  font-size: 1.5rem;
}

.field--static .field-label {
  transform: translateY(-1.5rem) scale(.78);
  color: var(--primary);
}

input[type="date"].field-input { min-height: 2.8rem; }

input[type="file"].field-input {
  padding-top: .9rem;
  font-size: .875rem;
}

.field-group {
  margin: 0 0 1.75rem;
  padding: 0;
  border: 0;
}

.field-group-label {
  float: none;
  width: auto;
  margin-bottom: .75rem;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--primary);
}

.field-group .check + .check { margin-top: .6rem; }

.check--radio input { border-radius: 50%; }

.check--radio input::before {
  width: 8px;
  height: 8px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  transform: scale(0);
}

.check--radio input:checked::before { transform: scale(1); }

.check-wrap .field-error { margin-left: 2.1rem; }

.form-submit { margin-top: 2.25rem; }

.contact-form .form-status { margin-top: 1rem; }

.contact-form .form-status:empty { display: none; }

/* Çok adımlı form (front.js) */
.kurumsal-form__progress {
  height: 2px !important;
  margin-bottom: 2rem !important;
  border-radius: 0;
  background: var(--line);
}

.kurumsal-form__progress .progress-bar { background: var(--primary); }

.kurumsal-form__nav .btn {
  min-height: 46px;
  padding: .8rem 1.35rem;
  border-radius: 0;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* ---------- Arşiv / arama ---------- */

.archive-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.archive-list li { border-bottom: 1px solid var(--line); }

.archive-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.75rem 0;
  color: var(--primary);
}

.archive-item-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.archive-item-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
  line-height: 1.15;
  transition: transform .55s var(--ease-out);
}

.archive-item-text {
  max-width: 44rem;
  font-size: .95rem;
  color: var(--gray);
}

.archive-item > .icon {
  width: 22px;
  height: 22px;
  color: var(--bronze);
  transition: transform .55s var(--ease-out);
}

.archive-item:hover { color: var(--primary); }

.archive-item:hover .archive-item-title { transform: translateX(8px); }

.archive-item:hover > .icon { transform: translateX(6px); }

.archive-empty {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--primary);
}

.articles-track--grid { row-gap: 3rem; }

@media (max-width: 991.98px) {
  .articles-track--grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    overflow: visible;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .articles-track--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.archive-pagination { margin-top: 3.5rem; }

.pagination {
  --bs-pagination-color: var(--primary);
  --bs-pagination-hover-color: var(--white);
  --bs-pagination-hover-bg: var(--primary);
  --bs-pagination-hover-border-color: var(--primary);
  --bs-pagination-active-bg: var(--primary);
  --bs-pagination-active-border-color: var(--primary);
  --bs-pagination-border-color: var(--line);
  --bs-pagination-focus-box-shadow: none;
  --bs-pagination-border-radius: 0;
  gap: .4rem;
}

.search-k {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.search-k .field { flex: 1; margin-bottom: 0; }

.search-k-count {
  margin-bottom: 1.5rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--primary);
}

/* ---------- Detay sayfası ---------- */

.detail-meta { margin-bottom: 1.75rem; }

.detail-cover {
  position: relative;
  overflow: hidden;
  margin: 0 0 2.5rem;
  aspect-ratio: 16 / 9;
  background: var(--soft-gray);
}

.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-lead {
  margin-bottom: 2rem;
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 1.1rem + .9vw, 1.75rem);
  line-height: 1.45;
  color: var(--primary);
}

.detail-block {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}

.detail-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin: 0 0 2rem;
}

.detail-price {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--primary);
}

.detail-gallery-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.comment-k {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.comment-k strong { color: var(--primary); }

.comment-k span { margin-left: .5rem; font-size: .8125rem; }

.comment-k p { margin: .35rem 0 0; }

.detail-aside {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 992px) {
  .detail-aside {
    position: sticky;
    top: calc(var(--header-h-sm) + 2rem);
    padding-left: 1.5rem;
  }
}

.aside-heading { color: var(--bronze); }

.aside-links {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.aside-links li { border-bottom: 1px solid var(--line); }

.aside-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0;
  font-size: .95rem;
  color: var(--primary);
}

.aside-links .icon {
  width: 16px;
  height: 16px;
  color: var(--bronze);
  transition: transform .5s var(--ease-out);
}

.aside-links a:hover .icon { transform: translateX(5px); }

.aside-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
  padding: 2rem;
  background: var(--primary-dark);
  color: rgba(255, 255, 255, .72);
}

.aside-contact .footer-heading { margin-bottom: .25rem; }

.aside-contact-title {
  margin: 0 0 .5rem;
  font-family: var(--font-serif);
  font-size: 1.625rem;
  line-height: 1.2;
  color: var(--white);
}

.aside-contact-title em { color: var(--gold-light); }

.aside-mail { color: rgba(255, 255, 255, .75); }

.aside-mail:hover { color: var(--white); }

.aside-contact .btn-k { margin-top: .75rem; }

/* ---------- Ek bloklar (şube, SSS/sekme, zaman çizelgesi, video, görüşler) ---------- */

.branch + .branch {
  margin-top: 3.5rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--line);
}

.branch-title { font-size: 2rem; }

.branch-map {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--soft-gray);
}

.branch-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) contrast(1.05) brightness(.97);
}

.accordion-k {
  --bs-accordion-bg: transparent;
  --bs-accordion-border-color: var(--line);
  --bs-accordion-border-radius: 0;
  --bs-accordion-inner-border-radius: 0;
  --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-active-bg: transparent;
  --bs-accordion-active-color: var(--primary);
  --bs-accordion-btn-padding-x: 0;
  --bs-accordion-body-padding-x: 0;
  border-top: 1px solid var(--line);
}

.accordion-k .accordion-item {
  border-width: 0 0 1px;
}

.accordion-k .accordion-button {
  gap: 1rem;
  padding-top: 1.35rem;
  padding-bottom: 1.35rem;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1rem + .8vw, 1.625rem);
  line-height: 1.25;
  color: var(--primary);
}

.accordion-k .accordion-body { padding: 0 0 1.5rem 3rem; }

.accordion-k .accordion-body p:last-child { margin-bottom: 0; }

.timeline-k {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.timeline-k li {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.timeline-k-date {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-style: italic;
  line-height: 1.1;
  color: var(--bronze);
}

.timeline-k-title {
  margin-bottom: .4rem;
  font-size: 1.5rem;
}

.timeline-k p { margin: 0; }

.video-k { background: var(--primary-dark); }

.video-k iframe { border: 0; }

.quote-k {
  height: 100%;
  margin: 0;
  padding: 2rem;
  background: var(--off-white);
}

.quote-k blockquote {
  margin: 0 0 1.5rem;
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--primary);
}

.quote-k figcaption strong {
  display: block;
  color: var(--primary);
}

.quote-k figcaption span { font-size: .875rem; }

/* ---------- Footer ---------- */

.footer-legal-btn {
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, .75);
  font: inherit;
  cursor: pointer;
  transition: color .3s ease;
}

.footer-legal-btn:hover { color: var(--white); }

/* ---------- Çerez bildirimi + tercih modalı (paket bileşeni) ---------- */

.kurumsal-cerez-banner {
  padding: 1.25rem 0 !important;
  background: var(--primary-dark) !important;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .875rem;
}

.kurumsal-cerez-banner .btn,
.kurumsal-cerez-tetik,
#cerezModal .btn {
  min-height: 40px;
  padding: .6rem 1.1rem;
  border-radius: 0;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.kurumsal-cerez-tetik {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}

#cerezModal .modal-content { border: 0; border-radius: 0; }

#cerezModal .modal-title { font-size: 1.75rem; }

/* WhatsApp butonu çerez bandının üstünde kalsın */
a[href^="https://wa.me/"].position-fixed { bottom: 4.5rem !important; }

/* ---------- Markalar, slider, galeri, fiyat, bülten blokları ---------- */

.logos-k {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 1px 0 0 1px;
  list-style: none;
}

@media (min-width: 768px) { .logos-k { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

@media (min-width: 1200px) { .logos-k { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.logos-k li {
  display: grid;
  place-items: center;
  min-height: 120px;
  margin: -1px 0 0 -1px;
  padding: 1.5rem;
  border: 1px solid var(--line);
}

.logos-k img {
  max-height: 56px;
  width: auto;
  filter: grayscale(1);
  opacity: .75;
  transition: filter .4s ease, opacity .4s ease;
}

.logos-k li:hover img { filter: none; opacity: 1; }

.logos-k-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  text-align: center;
  color: var(--primary);
}

.carousel-k .carousel-item img {
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.gallery-k {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--soft-gray);
}

.gallery-k img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}

.gallery-k:hover img { transform: scale(1.06); }

.price-k {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  padding: 2rem;
  border: 1px solid var(--line);
}

.price-k-value {
  margin: .25rem 0 1.5rem;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--primary);
}

.price-k-list {
  flex: 1;
  width: 100%;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.price-k-list li {
  padding: .65rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
}

.newsletter-k .field-input {
  border-bottom-color: rgba(255, 255, 255, .35);
  background-image: linear-gradient(var(--gold-light), var(--gold-light));
  color: var(--white);
}

.newsletter-k .field-label,
.newsletter-k .field-input:focus + .field-label,
.newsletter-k .field-input:not(:placeholder-shown) + .field-label { color: rgba(255, 255, 255, .75); }

.newsletter-k .check {
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, .72);
}

/* ---------- Kurucu fotoğrafı ---------- */

/* Elimizdeki kaynak 300×312 px: kutu görselin kendi boyutunu ve oranını aşmasın,
   büyütülüp bulanıklaşmasın. Yüksek çözünürlüklü (≥1000 px, 4:5) fotoğraf
   gelirse bu blok kaldırılabilir. */
.founder-media {
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.founder-photo { aspect-ratio: 300 / 312; }

.founder-media:hover .member-photo img { transform: none; }

/* ---------- Sertifikalar (belgeler bloğu) ---------- */

.certs { background: var(--white); }

/* Ekip bölümünün devamı olarak gelir: üst boşluk ve ayırıcı çizgi */
.team + .certs { padding-top: 0; }

.team + .certs > .container {
  padding-top: var(--section-y);
  border-top: 1px solid var(--line);
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .certs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem 2rem; }
}

@media (min-width: 1200px) {
  .certs-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Ana sayfa önizlemesi (4 belge): 3 sütunlu aralıkta yarım satır kalmasın */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .certs--onizleme .cert:nth-child(n + 4) { display: none; }
}

.cert-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--off-white);
  cursor: zoom-in;
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}

/* Dikey/yatay her belge aynı 4:3 kutuya sığar; gölge görselin kendisini izler */
.cert-media img {
  position: absolute;
  inset: 1rem;
  width: calc(100% - 2rem);
  height: calc(100% - 2rem);
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(16, 27, 41, .14));
}

.cert-media:hover,
.cert-media:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 10px 30px rgba(16, 27, 41, .08);
}

.cert-body { padding-top: 1.1rem; }

.cert-year {
  margin-bottom: .35rem;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--bronze);
}

.cert-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--primary);
}

.cert-detail {
  margin: .5rem 0 0;
  font-size: .875rem;
  line-height: 1.55;
}

/* Büyütme penceresi: görsel kendi boyutunu aşmaz (kaynaklar küçük, büyütülürse bulanıklaşır) */
.cert-dialog {
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.cert-dialog::backdrop { background: rgba(16, 27, 41, .85); }

.cert-dialog figure { margin: 0; text-align: center; }

.cert-dialog img {
  display: block;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 7rem);
  margin: 0 auto;
  background: var(--white);
}

.cert-dialog figcaption {
  margin-top: 1rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--white);
}

.cert-dialog-close {
  position: absolute;
  top: -.5rem;
  right: -.5rem;
  z-index: 1;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--primary);
  cursor: pointer;
}
