/* Lean public card styles — replaces full Bootstrap CSS for CWV */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #212529;
  background: #fff;
  line-height: 1.5;
  scroll-behavior: smooth;
}
a { color: var(--primary-color, #0d6efd); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
h1, h2, h3, h5, p { margin-top: 0; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 15px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.justify-content-end { justify-content: flex-end; }
.text-end { text-align: right; }
.gap-2 { gap: 0.5rem; }
.row.g-3 { --g: 0.75rem; margin: 0 calc(var(--g) * -0.5); }
.row.g-3 > * { padding: calc(var(--g) * 0.5); }
.row.g-4 { --g: 1.5rem; margin: 0 calc(var(--g) * -0.5); }
.row.g-4 > * { padding: calc(var(--g) * 0.5); }
[class*="col-"] { width: 100%; padding: 0 12px; }
.col-6 { width: 50%; }
@media (min-width: 768px) {
  .col-md-4 { width: 33.333%; }
  .col-md-6 { width: 50%; }
}
@media (min-width: 992px) {
  .col-lg-3 { width: 25%; }
  .col-lg-4 { width: 33.333%; }
  .col-lg-5 { width: 41.666%; }
  .col-lg-6 { width: 50%; }
  .col-lg-7 { width: 58.333%; }
}

.my-4 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.my-5 { margin-top: 3rem; margin-bottom: 3rem; }
.mt-5 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.me-2 { margin-right: 0.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.text-center { text-align: center; }
.text-white { color: #fff; }
.text-muted { color: #6c757d; }
.text-primary { color: var(--primary-color, #0d6efd); }
.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }
.small, small { font-size: 0.875em; }
.lead { font-size: 1.15rem; font-weight: 300; }
.list-unstyled { list-style: none; padding-left: 0; }
.border-0 { border: 0 !important; }
.border-top { border-top: 1px solid #dee2e6; }
.rounded { border-radius: 0.375rem; }
.overflow-hidden { overflow: hidden; }
.h-100 { height: 100%; }
.d-block { display: block; }
.w-100 { width: 100%; }
.d-none { display: none !important; }
@media (min-width: 768px) {
  .d-md-block { display: block !important; }
}

.btn {
  display: inline-block;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  border-radius: 0.375rem;
  text-decoration: none;
  background: transparent;
  color: inherit;
}
.btn:hover { text-decoration: none; filter: brightness(0.95); }
.btn-sm { padding: 0.25rem 0.5rem; font-size: 0.875rem; }
.btn-primary { background: var(--primary-color, #0d6efd); border-color: var(--primary-color, #0d6efd); color: #fff; }
.btn-success { background: #198754; border-color: #198754; color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn-outline-primary { border-color: var(--primary-color, #0d6efd); color: var(--primary-color, #0d6efd); }
.btn-outline-primary:hover { background: var(--primary-color, #0d6efd); color: #fff; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 0.5rem;
}
.card-body { flex: 1 1 auto; padding: 1rem; }
.card-title { margin-bottom: 0.5rem; font-size: 1.15rem; }
.card-img-top { width: 100%; border-top-left-radius: calc(0.5rem - 1px); border-top-right-radius: calc(0.5rem - 1px); }
.shadow { box-shadow: 0 .5rem 1rem rgba(0,0,0,.12); }
.shadow-sm { box-shadow: 0 .125rem .25rem rgba(0,0,0,.08); }
.shadow-lg { box-shadow: 0 1rem 3rem rgba(0,0,0,.14); }

.nav { display: flex; flex-wrap: wrap; padding-left: 0; margin: 0; list-style: none; }
.nav-item { list-style: none; }
.nav-link { display: block; padding: 0.5rem 1rem; color: #6c757d; text-decoration: none; }
.nav-tabs-custom { border-bottom: 2px solid #dee2e6; }
.nav-tabs-custom .nav-link { border: none; color: #6c757d; font-weight: 500; padding: 1rem 1.5rem; transition: color .2s, border-color .2s; }
.nav-tabs-custom .nav-link:hover,
.nav-tabs-custom .nav-link.active { color: var(--primary-color, #0d6efd); border-bottom: 2px solid var(--primary-color, #0d6efd); background: transparent; }

.sticky-header { position: sticky; top: 0; z-index: 1000; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.1); }
/* Dark logos: light chip for contrast on navy (#2c3e50) header */
.company-logo-header {
  max-height: 60px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
  padding: 8px;
  border-radius: 8px;
}
/* Light/white logos: charcoal chip so the mark stays visible on navy */
.company-logo-header.logo-is-light {
  background: #1a2332;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.section-title { font-weight: 700; position: relative; padding-bottom: 15px; }
.section-title::after {
  content: '';
  position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 3px;
  background: var(--primary-color, #0d6efd);
}
.service-card, .product-card, .reference-card { transition: transform .25s ease, box-shadow .25s ease; }
.service-card:hover, .product-card:hover, .reference-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,.1);
}
.gallery-item {
  margin-bottom: 0;
}
.gallery-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0.5rem;
  background: #f4f6f8;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 8px;
  cursor: zoom-in;
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.gallery-thumb:hover {
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.12);
  transform: translateY(-2px);
}
.gallery-thumb:focus-visible {
  outline: 2px solid var(--primary-color, #0d6efd);
  outline-offset: 2px;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
  pointer-events: none;
}
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(10, 14, 20, .88);
}
.gallery-lightbox.is-open,
.gallery-lightbox.is-open[hidden] {
  display: flex !important;
}
.gallery-lightbox__dialog {
  position: relative;
  width: min(1100px, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.gallery-lightbox__img {
  max-width: 100%;
  max-height: calc(92vh - 3.5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 1rem 3rem rgba(0,0,0,.45);
  background: #111;
}
.gallery-lightbox__caption {
  margin: 0;
  color: rgba(255,255,255,.9);
  font-size: 0.95rem;
  text-align: center;
  max-width: 100%;
}
.gallery-lightbox__close,
.gallery-lightbox__nav {
  position: absolute;
  border: 0;
  background: rgba(255,255,255,.12);
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
}
.gallery-lightbox__close:hover,
.gallery-lightbox__nav:hover { background: rgba(255,255,255,.22); }
.gallery-lightbox__close {
  top: 0.75rem;
  right: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.35rem;
  z-index: 3;
}
.gallery-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.5rem;
  z-index: 2;
}
.gallery-lightbox__nav--prev { left: 0.5rem; }
.gallery-lightbox__nav--next { right: 0.5rem; }
@media (max-width: 767px) {
  .gallery-lightbox { padding: 0.75rem; }
  .gallery-lightbox__nav { width: 2.25rem; height: 2.25rem; }
  .gallery-lightbox__nav--prev { left: 0.15rem; }
  .gallery-lightbox__nav--next { right: 0.15rem; }
}
.reference-logo { max-width: 100%; max-height: 80px; object-fit: contain; display: block; }
.mini-web-banner { background: #f0f4f8; border-bottom: 1px solid #dee2e6; font-size: 0.85rem; }
.ratio { position: relative; width: 100%; }
.ratio-4x3 { padding-bottom: 75%; }
.ratio > * { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Detail cards + modal */
.detail-card { cursor: pointer; transition: box-shadow .2s ease, transform .15s ease; }
.detail-card:hover { box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.12); transform: translateY(-2px); }
.detail-card:focus-visible { outline: 2px solid var(--primary-color, #0d6efd); outline-offset: 2px; }
.detail-card-hint {
  display: inline-block;
  margin-top: .5rem;
  font-size: .8rem;
  color: var(--primary-color, #0d6efd);
}
.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(10, 14, 20, .88);
}
.detail-modal.is-open,
.detail-modal.is-open[hidden] { display: flex !important; }
.detail-modal__dialog {
  position: relative;
  width: min(920px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1rem 3rem rgba(0,0,0,.4);
}
.detail-modal__img {
  display: block;
  width: 100%;
  max-height: 42vh;
  object-fit: contain;
  background: #f4f6f8;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.detail-modal__body { padding: 1.25rem 1.5rem 1.5rem; }
.detail-modal__title { margin: 0 0 .5rem; font-size: 1.5rem; }
.detail-modal__meta { margin: 0 0 .75rem; font-weight: 600; color: var(--primary-color, #0d6efd); }
.detail-modal__desc { color: #444; line-height: 1.6; margin-bottom: 1rem; }
.detail-modal__desc p:last-child { margin-bottom: 0; }
.detail-modal__link.is-disabled,
.detail-modal__link[aria-disabled="true"] {
  opacity: .45;
  pointer-events: none;
  cursor: not-allowed;
  text-decoration: none;
  filter: grayscale(.15);
}
.detail-modal__close,
.detail-modal__nav {
  position: absolute;
  border: 0;
  background: rgba(255,255,255,.14);
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
  z-index: 3;
}
.detail-modal__close:hover,
.detail-modal__nav:hover { background: rgba(255,255,255,.28); }
.detail-modal__close {
  top: 0.75rem;
  right: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.35rem;
}
.detail-modal__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.5rem;
}
.detail-modal__nav--prev { left: 0.5rem; }
.detail-modal__nav--next { right: 0.5rem; }

/* Contact — address left, map immediately right; form below */
.contact-alert { margin-bottom: 1.25rem; }
.contact-layout { align-items: stretch; }
.contact-layout__info { min-width: 0; }
.contact-layout__map { min-width: 0; }
.contact-info-block { height: 100%; }
.contact-list li { margin-bottom: .65rem; }
.contact-form .form-label { font-weight: 600; font-size: .9rem; }
.contact-form .form-control {
  display: block;
  width: 100%;
  padding: .55rem .75rem;
  border: 1px solid #ced4da;
  border-radius: .375rem;
  font: inherit;
}
.contact-form textarea.form-control { resize: vertical; min-height: 120px; }
.contact-map {
  width: 100%;
  min-height: 360px;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #eef2f6;
}
.contact-map iframe,
.contact-map--embed iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}
.contact-map--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}
@media (min-width: 992px) {
  .contact-map,
  .contact-map iframe,
  .contact-map--embed iframe { min-height: 420px; }
}
.alert {
  padding: .75rem 1rem;
  border-radius: .375rem;
  border: 1px solid transparent;
}
.alert-success { background: #d1e7dd; border-color: #badbcc; color: #0f5132; }
.alert-danger { background: #f8d7da; border-color: #f5c2c7; color: #842029; }
@media (max-width: 991px) {
  .contact-map { min-height: 280px; }
  .contact-map iframe,
  .contact-map--embed iframe { min-height: 280px; }
}
@media (max-width: 767px) {
  .detail-modal { padding: .75rem; }
  .detail-modal__nav { width: 2.25rem; height: 2.25rem; }
  .detail-modal__nav--prev { left: .15rem; }
  .detail-modal__nav--next { right: .15rem; }
  .detail-modal__body { padding: 1rem; }
}

/* Carousel */
.carousel { position: relative; }
.carousel-inner { position: relative; width: 100%; overflow: hidden; }
.carousel-item { display: none; position: relative; }
.carousel-item.active { display: block; }
.card-carousel .carousel-item img { width: 100%; height: 420px; object-fit: cover; }
.carousel-indicators {
  position: absolute; right: 0; bottom: 0; left: 0;
  z-index: 2; display: flex; justify-content: center; gap: 6px;
  padding: 0 0 1rem; margin: 0; list-style: none;
}
.carousel-indicators button {
  width: 10px; height: 10px; border: 0; border-radius: 50%;
  padding: 0; background: rgba(255,255,255,.55); cursor: pointer;
}
.carousel-indicators button.active { background: #fff; }
.carousel-control-prev, .carousel-control-next {
  position: absolute; top: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 12%; padding: 0; border: 0; background: transparent; cursor: pointer; color: #fff;
}
.carousel-control-prev { left: 0; }
.carousel-control-next { right: 0; }
.carousel-control-prev-icon, .carousel-control-next-icon {
  display: inline-block; width: 2rem; height: 2rem;
  background: rgba(0,0,0,.35); border-radius: 50%;
  background-repeat: no-repeat; background-position: 50%; background-size: 40% 40%;
}
.carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}
.carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.carousel-caption {
  position: absolute; right: 10%; bottom: 2rem; left: 10%;
  padding: 1rem; color: #fff; text-align: center;
  text-shadow: 0 1px 3px rgba(0,0,0,.55);
}
@media (max-width: 768px) {
  .card-carousel .carousel-item img { height: 260px; }
}

/* Rich / SEO content from crawl pipeline */
.rich-content-host,
.rich-content {
  max-width: 48rem;
  color: #243041;
  font-size: 1.05rem;
  line-height: 1.75;
}
.rich-content .rich-header { margin-bottom: 1.25rem; }
.rich-content .rich-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 .35rem;
  color: #152033;
}
.rich-content .rich-meta {
  margin: 0;
  color: #6b7280;
  font-size: .95rem;
}
.rich-content .rich-body p,
.rich-content-host > p {
  margin: 0 0 1.1rem;
}
.rich-content .rich-subtitle {
  font-size: 1.1rem;
  font-weight: 650;
  margin: 1.75rem 0 .75rem;
  color: #1f2937;
}
.rich-content .rich-list {
  margin: 0;
  padding-left: 1.15rem;
}
.rich-content .rich-list li { margin-bottom: .4rem; }
.rich-gallery { margin-top: 1.75rem; }
.rich-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .75rem;
}
.rich-figure {
  margin: 0;
  border-radius: .5rem;
  overflow: hidden;
  background: #f3f4f6;
  aspect-ratio: 4 / 3;
}
.rich-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rich-contact-list { margin: 0; padding-left: 0; list-style: none; }
.rich-contact-list li { margin-bottom: .65rem; }
.rich-contact-list strong {
  display: inline-block;
  min-width: 4.5rem;
  color: #374151;
  margin-right: .35rem;
}
.about-page .card-body { padding-top: 2.25rem; }
@media (max-width: 575px) {
  .rich-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .rich-content-host, .rich-content { font-size: 1rem; }
}

/* Telebilgi MiniWeb powered-by strip (external chrome — not firm theme) */
.site-footer { margin-top: 3rem; }

/* Sticky footer: pin promo/legal to viewport bottom when MiniWeb content is short */
html.tb-miniweb { height: 100%; }
body.tb-miniweb {
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body.tb-miniweb .site-footer {
  margin-top: auto;
  /* Keep a clear gap above the dark promo when auto-margin collapses */
  padding-top: 1.25rem;
}

.tb-sites-promo {
  /* Distinct from typical firm card themes (white / primary accent) */
  background: #0b1220;
  border-top: 1px solid #1e293b;
  padding: 1rem 0;
  color: #cbd5e1;
}
.tb-sites-promo__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
}
.tb-sites-promo__brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.tb-sites-promo__brand img {
  display: block;
  height: 28px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  /* Keep logo readable on dark chrome even if asset is dark-on-transparent */
  filter: brightness(0) invert(1);
}
.tb-sites-promo__copy {
  flex: 1 1 16rem;
  min-width: 0;
}
.tb-sites-promo__powered,
.tb-sites-promo__ad {
  margin: 0;
  color: #94a3b8;
  font-size: 0.875rem;
  line-height: 1.45;
}
.tb-sites-promo__powered { font-weight: 600; color: #e2e8f0; }
.tb-sites-promo__powered a {
  color: #7dd3fc;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tb-sites-promo__ad { margin-top: 0.2rem; }
.tb-sites-promo__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}
.tb-sites-promo__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.85rem;
  border: 1px solid #475569;
  border-radius: 0.375rem;
  background: transparent;
  color: #e2e8f0;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.tb-sites-promo__btn:hover {
  background: #1e293b;
  border-color: #64748b;
  color: #fff;
  text-decoration: none;
}
.tb-sites-promo__btn--primary {
  background: #38bdf8;
  border-color: #38bdf8;
  color: #0b1220;
}
.tb-sites-promo__btn--primary:hover {
  background: #7dd3fc;
  border-color: #7dd3fc;
  color: #0b1220;
}
body.tb-miniweb .site-footer__legal {
  background: #020617;
  border-top-color: #1e293b;
  color: #94a3b8;
}
body.tb-miniweb .site-footer__legal a { color: #cbd5e1; }
.site-footer__legal { background: #fff; }
@media (max-width: 767px) {
  .tb-sites-promo { padding: 0.9rem 0; }
  .tb-sites-promo__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }
  .tb-sites-promo__ctas { width: 100%; }
  .tb-sites-promo__btn { flex: 1 1 auto; }
}
