/* Sitenin hareketleri. Hepsi "azaltılmış hareket" tercihinde kapanır. */
@view-transition { navigation: auto; }

::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.25s; }

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.motion-ready .reveal.reveal--in {
  opacity: 1;
  transform: none;
}

/* Üst görsel */
.page-title .bg-img img {
  animation: hero-zoom 14s ease-out both;
  will-change: transform;
}

@keyframes hero-zoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

/* Ana sayfa hizmet kartları sırayla gelir */
.motion-ready .owl-thumb-item {
  animation: rise-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.motion-ready .owl-thumb-item:nth-child(2) { animation-delay: 0.1s; }
.motion-ready .owl-thumb-item:nth-child(3) { animation-delay: 0.2s; }
.motion-ready .owl-thumb-item:nth-child(4) { animation-delay: 0.3s; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(2rem); }
  to { opacity: 1; transform: none; }
}

/* Menü */
.header .navbar,
.site-logo { transition: height 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease; }
.nav__item-link { transition: color 0.2s ease; }

/* Görsel ve kart üzerine gelme */
.project-item,
.about__img { overflow: hidden; }

.project-item img,
.about__img img { transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }

.project-item:hover img,
.about__img:hover img { transform: scale(1.04); }

.widget,
.contact-panel,
.btn__primary { transition: transform 0.25s ease, box-shadow 0.25s ease; }

.widget-help:hover,
.btn__primary:hover { transform: translateY(-2px); }

/* Okuma ilerlemesi */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  height: 3px;
  background: #c62524;
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* Harita */
.map-container { min-height: 560px; height: 100%; border-radius: 0.75rem; overflow: hidden; background: #eef1f4; }
.map-container .leaflet-tile-pane { filter: grayscale(0.85) contrast(0.95) brightness(1.04); }

.branch-pin img {
  display: block;
  width: 34px;
  height: 34px;
  border: 2px solid #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

.branch-pin:hover img { transform: scale(1.15); }

.branch-pin::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 8px;
  box-shadow: 0 0 0 0 rgba(198, 37, 36, 0.5);
  animation: pin-pulse 2.6s ease-out infinite;
}

@keyframes pin-pulse {
  to { box-shadow: 0 0 0 14px rgba(198, 37, 36, 0); }
}

.branch-truck svg {
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
  transition: transform 0.25s ease;
}

.branch-truck--west svg { transform: scaleX(-1); }

.branch-route {
  stroke: #c62524;
  stroke-opacity: 0.65;
  fill: none;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.6s ease-in-out;
}

.branch-route--hidden { stroke-dashoffset: 1; }

.branch-popup p { margin: 0.25rem 0; }

.branch-popup__link {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.3rem 0.7rem;
  color: #fff !important;
  background: #c62524;
  border-radius: 0.25rem;
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }

  .motion-ready .reveal { opacity: 1; transform: none; transition: none; }
  .page-title .bg-img img,
  .motion-ready .owl-thumb-item,
  .branch-pin::after { animation: none; }
  .project-item img,
  .about__img img,
  .branch-route { transition: none; }
  .scroll-progress { display: none; }
}

/* Başkan fotoğrafı: kişi karenin alt yarısında. */
.about__img img[src*="baskan.jpg"] {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 78%;
}

/* ── Ana sayfa bölümleri ── */
.home-services, .milestones { position: relative; background: #fff; }
.home-services { padding: 90px 0 50px; }
.milestones { padding: 60px 0 80px; }

.home-heading { margin-bottom: 44px; }
.home-heading h2 { margin: 0; font-size: 2rem; font-weight: 700; letter-spacing: 0.02em; color: #1b1a1a; }
.home-heading h2 span { color: #c62524; }

.slider-1 .owl-nav { display: none !important; }

@media (max-width: 991px) {
  .slider-1 .slide-item { height: 62vh !important; min-height: 380px; }
  .slider-1 #background-video { position: absolute !important; height: 100% !important; }
}

/* Hizmet kartları: hareketli ikonlar */
.home-services__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.home-service { position: relative; display: flex; flex-direction: column; gap: 0.4rem; padding: 1.25rem; color: #1b1a1a; background: #fff; border: 1px solid #ececee; border-radius: 0.75rem; transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease; }
.home-service strong { font-size: 1rem; line-height: 1.3; color: inherit; }
.home-service small { color: #5f6269; font-size: 0.82rem; line-height: 1.45; transition: color 0.3s ease; }
.home-service__go { position: absolute; right: 1.1rem; top: 1.25rem; color: #c62524; opacity: 0; transform: translateX(-0.5rem); transition: opacity 0.25s ease, transform 0.25s ease, color 0.25s ease; }
.home-service:hover { color: #fff; background: #c62524; border-color: #c62524; transform: translateY(-0.35rem); box-shadow: 0 18px 40px rgba(198, 37, 36, 0.28); text-decoration: none; }
.home-service:hover small { color: rgba(255, 255, 255, 0.92); }
.home-service:hover .home-service__go { color: #fff; opacity: 1; transform: none; }
.home-service:focus-visible { outline: 3px solid #c62524; outline-offset: 2px; }

.svc { display: block; width: 78px; height: 52px; margin-bottom: 0.35rem; color: #2b2d33; transition: color 0.3s ease; }
.svc svg { display: block; width: 100%; height: 100%; overflow: hidden; }
.svc-accent { stroke: #c62524; }
.svc-accent-fill { stroke: #c62524; fill: rgba(198, 37, 36, 0.12); }
.home-service:hover .svc { color: #fff; }
.home-service:hover .svc-accent,
.home-service:hover .svc-accent-fill,
.home-service:hover .svc-fill,
.home-service:hover .svc-dot { stroke: #fff; }
.home-service:hover .svc-accent-fill { fill: rgba(255, 255, 255, 0.2); }

.svc-road { stroke-dasharray: 10 8; animation: svc-road 0.9s linear infinite; }
@keyframes svc-road { to { stroke-dashoffset: 18; } }
.svc-wheel { animation: svc-spin 1s linear infinite; }
@keyframes svc-spin { to { transform: rotate(360deg); } }
.svc-bounce { animation: svc-bounce 0.9s ease-in-out infinite; }
@keyframes svc-bounce { 50% { transform: translateY(-1px); } }

.svc-float { animation: svc-float 3s ease-in-out infinite; transform-origin: 48px 40px; }
@keyframes svc-float { 0%, 100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-3px) rotate(1.2deg); } }
.svc-wave { animation: svc-wave 2.4s linear infinite; }
@keyframes svc-wave { to { transform: translateX(32px); } }
.svc-smoke { animation: svc-smoke 2.2s ease-out infinite; }
@keyframes svc-smoke { from { opacity: 0.9; transform: translateY(3px); } to { opacity: 0; transform: translateY(-4px); } }

.svc-fly { animation: svc-fly 3.2s ease-in-out infinite; }
@keyframes svc-fly { 0%, 100% { transform: translate(0, 2px); } 50% { transform: translate(4px, -4px); } }
.svc-trail { stroke-dasharray: 14 10; animation: svc-trail 0.8s linear infinite; opacity: 0.55; }
@keyframes svc-trail { to { stroke-dashoffset: 24; } }

.svc-orbit { animation: svc-spin 9s linear infinite; }
.svc-dot { stroke: #c62524; }

.svc-fill { fill: rgba(198, 37, 36, 0.14); stroke: none; transform-origin: 8px 31px; animation: svc-load 3.4s ease-in-out infinite; }
@keyframes svc-load { 0% { transform: scaleX(0); } 55%, 85% { transform: scaleX(1); } 100% { transform: scaleX(0); opacity: 0; } }

.svc-box { animation: svc-drop 3.6s cubic-bezier(0.3, 0.7, 0.3, 1) infinite both; }
.svc-box--2 { animation-delay: 0.3s; }
.svc-box--3 { animation-delay: 0.6s; }
.svc-box--4 { animation-delay: 0.9s; }
@keyframes svc-drop { 0% { opacity: 0; transform: translateY(-14px); } 15%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }

.svc-pulse-shield { fill: rgba(198, 37, 36, 0.08); transform-origin: 48px 32px; animation: svc-pulse 2.4s ease-in-out infinite; }
@keyframes svc-pulse { 50% { transform: scale(1.05); } }
.svc-check { stroke-dasharray: 40; animation: svc-check 2.4s ease-in-out infinite; }
@keyframes svc-check { 0% { stroke-dashoffset: 40; } 45%, 100% { stroke-dashoffset: 0; } }

.svc-drop { animation: svc-dripping 2.2s ease-in infinite; }
@keyframes svc-dripping { 0% { opacity: 0; transform: translateY(-4px) scale(0.7); transform-origin: 45px 18px; } 30% { opacity: 1; } 80% { opacity: 1; transform: translateY(14px); } 100% { opacity: 0; transform: translateY(16px); } }
.svc-level { animation: svc-level 2.2s ease-in-out infinite; }
@keyframes svc-level { 50% { transform: translateX(4px) translateY(-1px); } }

.svc-shelf { animation: svc-drop 4s cubic-bezier(0.3, 0.7, 0.3, 1) infinite both; }
.svc-shelf--2 { animation-delay: 0.4s; }
.svc-shelf--3 { animation-delay: 0.8s; }

@media (max-width: 991px) { .home-services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) {
  .home-services { padding: 50px 0 30px; }
  .home-service { padding: 1rem; }
  .home-service small { display: none; }
}

/* Kilometre taşları: yol ve ilerleyen araç */
.milestones__road { position: relative; --progress: 0; padding-top: 58px; }
.milestones__track { position: absolute; left: 0; right: 0; top: 24px; height: 6px; background: #e7e8ea; border-radius: 3px; }
.milestones__fill { height: 100%; background: #c62524; border-radius: 3px; transform: scaleX(var(--progress)); transform-origin: left; }
.milestones__truck { position: absolute; top: -21px; left: calc(var(--progress) * 100%); width: 48px; height: 48px; margin-left: -24px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 26px; background: #c62524; border-radius: 50%; box-shadow: 0 6px 18px rgba(198, 37, 36, 0.35); }
.milestones__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.milestone { position: relative; padding-top: 0.25rem; }
.milestone__year, .milestone p { opacity: 0.35; transition: opacity 0.5s ease, color 0.3s ease; }
.milestone--on .milestone__year, .milestone--on p { opacity: 1; }
.milestone__dot { position: absolute; top: -38px; left: 0; width: 14px; height: 14px; background: #fff; border: 3px solid #cfd1d5; border-radius: 50%; transition: border-color 0.3s ease; }
.milestone--on .milestone__dot { border-color: #c62524; }
.milestone__year { display: block; margin-bottom: 0.4rem; font-size: 2rem; line-height: 1.1; color: #1b1a1a; }
.milestone--on .milestone__year { color: #c62524; }
.milestone p { margin: 0; color: #55585e; font-size: 0.92rem; line-height: 1.55; }

@media (max-width: 767px) {
  .milestones__road { padding: 0 0 0 42px; }
  .milestones__track { left: 12px; right: auto; top: 0; bottom: 0; width: 6px; height: auto; }
  .milestones__fill { transform: scaleY(var(--progress)); transform-origin: top; }
  .milestones__truck { top: calc(var(--progress) * 100%); left: 15px; margin-top: -20px; width: 40px; height: 40px; margin-left: -20px; font-size: 20px; }
  .milestones__list { grid-template-columns: 1fr; }
  .milestone__dot { top: 0.7rem; left: -36px; }
}

/* Neden biz: 3B sahne (journey3d.js). */
.journey { position: relative; height: clamp(520px, 52vw, 760px); overflow: hidden; background: linear-gradient(180deg, #f7f9fb 0%, #e9eef3 100%); }
.journey__heading { position: absolute; z-index: 2; top: 44px; left: 0; right: 0; margin: 0; text-align: center; font-size: 2rem; font-weight: 700; color: #1b1a1a; pointer-events: none; }
.journey__canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 0.8s ease; }
.journey--ready .journey__canvas { opacity: 1; }
.journey--no3d .journey__canvas { display: none; }
.journey--no3d { height: auto; }
.journey--no3d .journey__heading { position: static; padding-top: 44px; }
.journey__panel { position: absolute; z-index: 2; left: 0; right: 0; bottom: 28px; }
.journey--no3d .journey__panel { position: static; padding: 2rem 0 3rem; }
.journey__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.journey__step { padding: 0.9rem 1rem; background: rgba(255, 255, 255, 0.78); border-radius: 0.6rem; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 8px 24px rgba(16, 24, 40, 0.07); opacity: 0.72; transition: opacity 0.4s ease, transform 0.4s ease; }
.journey__step--active { opacity: 1; transform: translateY(-4px); }
.journey__step strong { display: block; margin: 0.55rem 0 0.15rem; font-size: 1rem; color: #1b1a1a; }
.journey__step p { margin: 0; color: #55585e; font-size: 0.85rem; line-height: 1.4; }
.journey__bar { display: block; height: 3px; overflow: hidden; background: #dfe2e7; border-radius: 2px; }
.journey__bar i { display: block; height: 100%; background: #c62524; transform: scaleX(0); transform-origin: left; }

@media (max-width: 767px) {
  .journey__heading { top: 24px; font-size: 1.5rem; }
  .journey { height: auto; }
  .journey__canvas { position: relative; height: 400px; }
  .journey__panel { position: static; padding: 0 0 1.5rem; margin-top: -0.5rem; }
  .journey__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .journey__step { padding: 0.7rem 0.8rem; }
}

/* ── Üst menü ── */
@media (min-width: 992px) {
  .header .navbar { transition: background-color 0.3s ease, box-shadow 0.3s ease, height 0.3s ease; }
  .navbar .navbar-nav > .nav__item > .nav__item-link { position: relative; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em; }
  .navbar .navbar-nav > .nav__item > .nav__item-link:before {
    left: 0; right: 0; width: 100% !important; bottom: 34%; height: 2px; background-color: #c62524 !important;
    transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
  }
  .navbar .navbar-nav > .nav__item:hover > .nav__item-link:before,
  .navbar .navbar-nav > .nav__item > .nav__item-link.active:before { transform: scaleX(1); }
  .header-transparent .navbar:not(.fixed-navbar) { background: linear-gradient(180deg, rgba(10, 10, 12, 0.55) 0%, rgba(10, 10, 12, 0) 100%); border-bottom: 0; }
  .fixed-navbar { background: rgba(255, 255, 255, 0.92) !important; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 6px 24px rgba(16, 24, 40, 0.08) !important; }
  .fixed-navbar .site-logo { height: 52px !important; }

  .navbar .navbar-nav { align-items: center; }

  /* Açılır menü */
  .navbar .dropdown-menu { padding: 0.6rem; border: 0; border-radius: 0.75rem; box-shadow: 0 20px 50px rgba(16, 24, 40, 0.18); }
  .navbar .nav__item.with-dropdown:hover > .dropdown-menu { animation: menu-in 0.2s ease both; }
  .navbar .dropdown-menu .nav__item { border: 0; }
  .navbar .dropdown-menu-col { background: transparent; }
  .navbar .dropdown-menu .nav__item .nav__item-link { padding: 0.55rem 0.8rem; border: 0; border-radius: 0.5rem; line-height: 1.4; color: #2b2d33; font-weight: 500; transition: background-color 0.15s ease, color 0.15s ease; }
  .navbar .dropdown-menu .nav__item .nav__item-link:hover { background: #fbeeee; color: #c62524; }
  .navbar .dropdown-menu .nav__item .nav__item-link:after { display: none; }
  .dropdown-menu-col h6 { margin: 0.5rem 0.8rem; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: #c62524; }

  /* E-şube düğmesi */
  .navbar .navbar-nav > .nav__item > a[href="/Login"] { padding: 0.55rem 1.1rem; line-height: 1.2; color: #fff !important; background: #c62524; border-radius: 2rem; transition: background-color 0.2s ease, transform 0.2s ease; }
  .navbar .navbar-nav > .nav__item > a[href="/Login"]:hover { background: #a81d1c; transform: translateY(-1px); }
  .navbar .navbar-nav > .nav__item > a[href="/Login"]:before { display: none; }
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(0.5rem); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .milestones__road { --progress: 1 !important; }
  .milestone__year, .milestone p { opacity: 1; transition: none; }
  .svc * { animation: none !important; }
}

.careers-empty p { margin-bottom: 1.25rem; font-size: 1.05rem; color: #55585e; }

/* Şube listesi */
#cta1 { padding-top: 70px !important; padding-bottom: 80px !important; background: #f6f7f9; border-top: 0 !important; }
#cta1 .branch-col { display: flex; flex-direction: column; }
#cta1 .contact-panel-2 { height: 100%; max-height: 560px; display: flex; flex-direction: column; margin: 0; padding: 0; overflow: hidden; background: #fff; border: 0; border-radius: 0.75rem; box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06); }
#cta1 .contact__panel-header { flex: none; display: block; padding: 1.25rem 1.35rem; margin: 0; background: #fff; border-bottom: 1px solid #eceef1; }
#cta1 .contact__panel-header i { display: none; }
#cta1 .contact__panel-title { margin: 0; font-size: 1.05rem; font-weight: 700; color: #1b1a1a; }
#cta1 #accordion { flex: 1; min-height: 0; overflow-y: auto; }
#cta1 .accordion-item { margin: 0; border: 0; border-bottom: 1px solid #f0f1f4; border-radius: 0; background: transparent; box-shadow: none; }
#cta1 .accordion-item:last-child { border-bottom: 0; }
#cta1 .accordion__item-header { padding: 0; border: 0; background: transparent; cursor: pointer; }
#cta1 .accordion__item-header:before, #cta1 .accordion__item-header:after { display: none; }
#cta1 .accordion__item-title { position: relative; display: block; padding: 0.85rem 2.4rem 0.85rem 2.6rem; font-size: 0.95rem; font-weight: 600; line-height: 1.3; color: #2b2d33; transition: background-color 0.15s ease, color 0.15s ease; }
#cta1 .accordion__item-title:before { content: ''; position: absolute; left: 1.35rem; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; background: #c9ccd2; border-radius: 50%; transition: background-color 0.15s ease, box-shadow 0.15s ease; }
#cta1 .accordion__item-title:after { content: '\f105'; position: absolute; right: 1.35rem; top: 50%; margin-top: -0.6em; font-family: FontAwesome; font-size: 1rem; color: #a5a9b1; background: none; transition: transform 0.2s ease; }
#cta1 .accordion__item-title:hover { background: #fbf2f2; color: #c62524; text-decoration: none; }
#cta1 .accordion__item-title:hover:before { background: #c62524; }
#cta1 .accordion-item.branch--open .accordion__item-title { color: #c62524; background: #fbf2f2; }
#cta1 .accordion-item.branch--open .accordion__item-title:before { background: #c62524; box-shadow: 0 0 0 4px rgba(198, 37, 36, 0.15); }
#cta1 .accordion-item.branch--open .accordion__item-title:after { transform: rotate(90deg); color: #c62524; }
#cta1 .accordion__item-body { padding: 0.6rem 1.35rem 1.1rem 2.6rem; background: #fbf2f2; }
#cta1 .contact__list { margin: 0 0 0.75rem; }
#cta1 .contact__list li { margin: 0 0 0.25rem; font-size: 0.83rem; line-height: 1.45; color: #55585e; }
#cta1 .accordion__item-body .btn { display: inline-flex; align-items: center; width: auto; height: auto; min-width: 0; padding: 0.4rem 0.85rem; font-size: 0.8rem; font-weight: 600; line-height: 1.2; color: #fff; background: #c62524; border: 0; border-radius: 2rem; }
#cta1 .accordion__item-body .btn:hover { background: #a81d1c; }

@media (max-width: 991px) {
  #cta1 .contact-panel-2 { max-height: none; margin-bottom: 1.25rem; }
  #cta1 #accordion { max-height: 360px; }
  .map-container { min-height: 420px; }
}
