/* V24 tarzı mega header — eski .main-header stillerini geçersiz kılar */

/* Slider üstüne bindir (eski tema davranışı) — boşluk oluşmaz */
.header.header-one.main-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.06);
  margin: 0;
}

.header.header-one.main-header.is-sticky,
.main-header.fixed-header.header-one {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  animation: headerMegaSlideDown 0.3s ease;
}

@keyframes headerMegaSlideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* Yalnızca kaydırınca padding — başlangıçta slider tam üstten başlar */
body.header-mega-sticky-padding {
  padding-top: var(--header-mega-h, 0px);
}

/* Eski style.php .main-header .header-top mavi şeridini ez */
.main-header.header-one .header-top.header-top-one.bg-1 {
  background: var(--renk1, #c62828) !important;
  border: 0;
  padding: 0;
  position: relative;
  float: none;
}

.header-top-one {
  font-size: 14px;
  color: #fff;
}

.header-top-one .left,
.header-top-one .right {
  display: flex;
  align-items: center;
  min-height: 46px;
}

.header-top-one .left {
  gap: 50px;
}

.header-top-one .mail,
.header-top-one .header-phone {
  display: inline-flex;
  align-items: center;
}

.header-top-one .left .mail {
  position: relative;
}

/* E-posta ile telefon arası dikey çizgi (telefon varken) */
.header-top-one .left .mail:has(+ .header-phone)::after {
  position: absolute;
  content: "";
  width: 1px;
  height: 14px;
  background: #ffffff;
  right: -25px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.9;
}

.header-top-one .left a,
.header-top-one .top-nav a {
  color: #fff !important;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 1;
}

.header-top-one .left a:hover,
.header-top-one .top-nav a:hover {
  color: rgba(255, 255, 255, 0.85) !important;
}

.header-top-one .left i,
.header-top-one .top-nav i {
  color: #fff !important;
  font-size: 15px;
}

.header-top-one .right {
  justify-content: flex-end;
  gap: 14px;
}

.header-top-one .top-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-top-one .top-nav .flag-icon {
  width: 22px;
  height: 16px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.header-top-one .social-wrapper-one {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: none;
}

/* Üst menü linkleri varken sosyal ikonlar önüne ayırıcı çizgi */
.header-top-one .right.has-top-nav-items .social-wrapper-one {
  margin-left: 0;
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.header-top-one .social-wrapper-one a {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
  font-size: 14px;
  transition: 0.2s ease;
}

.header-top-one .social-wrapper-one a:hover {
  background: #fff;
  color: var(--renk1, #c62828) !important;
}

/* Ana menü şeridi */
.header-container.flexbox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 90px;
  background: #fff;
}

.header-logo {
  flex-shrink: 0;
}

.header-logo img {
  max-height: 74px;
  width: auto;
  display: block;
}

.header-bar {
  display: none;
  border: 0;
  background: transparent;
  font-size: 22px;
  color: #1f2937;
  padding: 8px;
  cursor: pointer;
  line-height: 1;
}

.header-nav__wrapper {
  flex: 1;
  min-width: 0;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
}

.header-nav__item {
  position: static;
}

.header-nav__item > a {
  display: block;
  padding: 32px 13px;
  font-weight: 600;
  font-size: 15px;
  color: #1a1a1a;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.header-nav__item:hover > a,
.header-nav__item.has-dropdown:hover > a {
  color: var(--renk1, #c62828);
}

/* Mega dropdown */
.header-nav__dropdown,
.header-nav__links {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: 0.22s ease;
  z-index: 1000;
}

.header-nav__item.has-dropdown:hover > .header-nav__dropdown,
.header-nav__item.has-dropdown:hover > .header-nav__links,
.header-nav__item.has-dropdown.is-open > .header-nav__dropdown,
.header-nav__item.has-dropdown.is-open > .header-nav__links {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.header-nav__dropdown-bg {
  background: #fff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
  border-top: 3px solid var(--renk1, #c62828);
  padding: 28px 0 34px;
}

.header-nav__dropdown .gallery .flexbox {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gallery-card a {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
  transition: 0.25s ease;
}

.gallery-card a:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.gallery-photo {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-footer {
  padding: 12px 14px;
}

.gallery-footer .title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

.navigation-dropdown__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  transition: 0.2s ease;
}

.navigation-dropdown__item .title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.gallery-card.p-2 a:hover .navigation-dropdown__item {
  border-color: var(--renk1, #c62828);
  color: var(--renk1, #c62828);
}

.header-nav__links {
  left: auto;
  right: auto;
  width: 240px;
  margin-left: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 8px 8px;
  padding: 8px 0;
  list-style: none;
}

.header-nav__links li a {
  display: block;
  padding: 10px 20px;
  color: #374151;
  text-decoration: none;
}

.header-nav__links li a:hover {
  color: var(--renk1, #c62828);
  background: #f9fafb;
}

.header-nav__dropdown-col .section-header.small .small-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--renk1, #c62828);
  margin-bottom: 6px;
}

.header-nav__dropdown-col .section-header.small .title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #111827;
}

.header-nav__dropdown-col .section-header.small .border {
  width: 50px;
  height: 3px;
  background: var(--renk1, #c62828);
  margin-bottom: 14px;
}

.header-nav__dropdown-col .section-header.small .text {
  color: #6b7280;
  line-height: 1.6;
  font-size: 14px;
}

.services-card {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
}

.services-card .services-photo {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.services-card .services-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-card .services-footer {
  padding: 14px;
}

.services-card .services-footer .title {
  font-size: 15px;
  margin: 0 0 8px;
  font-weight: 700;
}

.services-card .services-footer .text {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 10px;
  line-height: 1.5;
}

.services-card .button-line {
  font-size: 13px;
  font-weight: 600;
  color: var(--renk1, #c62828);
  text-decoration: none;
}

.buttons-container.center {
  text-align: center;
}

.margin-top-50 {
  margin-top: 28px;
}

/* Sağ butonlar — V24 */
.rts-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 6px;
  padding: 13px 24px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s ease;
  white-space: nowrap;
}

.rts-btn.btn-primary {
  background: var(--renk1, #c62828);
  color: #fff !important;
}

.rts-btn.btn-primary:hover {
  filter: brightness(0.92);
  color: #fff !important;
}

.rts-btn.btn-primary-alta {
  background: #f1f3f5;
  color: #1f2937;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 8px;
  font-size: 18px;
}

.rts-btn.btn-primary-alta:hover {
  background: var(--renk1, #c62828);
  color: #fff !important;
}

.button-area {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 12px;
}

.ml--20 {
  margin-left: 0;
}

.header-nav .owl-services .owl-nav button {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  color: #111827;
}

.header-nav .owl-services .owl-nav .owl-prev { left: -8px; }
.header-nav .owl-services .owl-nav .owl-next { right: -8px; }
.header-nav .services-carousel {
  position: relative;
  padding: 0 12px;
}

/* Slider ile header arası boşluk olmasın */
.page-wrapper .banner-section {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.has-header-mega .diller {
  display: none !important;
}

#menu-btn.menu {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
}

.teklif-modal-content {
  border: 0;
  border-radius: 8px;
  overflow: hidden;
}

.teklif-modal-close {
  font-size: 22px;
  opacity: 0.7;
  padding: 12px 16px 0;
  margin: 0;
}

.teklif-modal-form {
  padding: 8px 24px 28px;
}

/* V24 side-bar mobil panel */
#anywhere-home.side-bar-overlay {
  cursor: pointer;
  background: #0e1013;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1800;
}

#anywhere-home.side-bar-overlay.bgshow {
  opacity: 0.7;
  visibility: visible;
  pointer-events: auto;
}

#side-bar.side-bar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 365px;
  max-width: 92vw;
  height: 100%;
  padding: 40px 30px 30px;
  background: #fff;
  z-index: 1900;
  transition: right 0.45s ease;
  overflow-y: auto;
  box-shadow: -5px 0 20px rgba(15, 23, 42, 0.12);
}

#side-bar.side-bar.show {
  right: 0;
}

#side-bar .close-icon-menu {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0 0 10px;
  cursor: pointer;
}

#side-bar .close-icon-menu i {
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 5px;
  background: var(--renk1, #c62828);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

#side-bar .logo {
  max-height: 58px;
  width: auto;
}

#side-bar .disc {
  margin: 24px 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: #4b5563;
}

#side-bar .get-in-touch .title {
  margin: 28px 0 16px;
  font-weight: 700;
  color: #111827;
}

#side-bar .get-in-touch .single {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.5;
}

#side-bar .get-in-touch .single i {
  color: var(--renk1, #c62828);
  margin-top: 3px;
  flex-shrink: 0;
}

#side-bar .get-in-touch .single a {
  color: #374151;
  word-break: break-word;
}

#side-bar .social-wrapper-two.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

#side-bar .social-wrapper-two a {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--renk1, #c62828);
  color: #fff;
  text-decoration: none;
}

#side-bar .social-wrapper-two a i {
  color: #fff;
  font-size: 15px;
}

#side-bar .body-mobile .mainmenu {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

#side-bar .body-mobile .mainmenu > li {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  background: #fff;
}

#side-bar .body-mobile .mainmenu li a {
  display: block;
  color: #111827;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 4px 0;
}

#side-bar .body-mobile .mainmenu li.has-droupdown > a {
  position: relative;
  padding-right: 28px;
}

#side-bar .body-mobile .mainmenu li.has-droupdown > a::before {
  content: "\f078";
  font-family: "Font Awesome 5 Pro";
  font-weight: 900;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #6b7280;
  transition: transform 0.2s ease;
}

#side-bar .body-mobile .mainmenu li.has-droupdown > a.open {
  color: var(--renk1, #c62828);
}

#side-bar .body-mobile .mainmenu li.has-droupdown > a.open::before {
  content: "\f077";
  color: var(--renk1, #c62828);
}

#side-bar .body-mobile .mainmenu .submenu {
  list-style: none;
  margin: 8px 0 0;
  padding: 0 0 0 8px;
  display: none !important;
  border-top: 1px solid #f1f5f9;
}

#side-bar .body-mobile .mainmenu .submenu.active {
  display: block !important;
}

#side-bar .body-mobile .mainmenu .submenu li a {
  font-weight: 500;
  font-size: 14px;
  color: #374151;
  padding: 8px 0;
}

#side-bar .body-mobile .mainmenu .submenu li a:hover {
  color: var(--renk1, #c62828);
}

#side-bar .mobile-menu-social {
  margin-top: 20px;
}

#side-bar .dil_para {
  margin-top: 18px;
}

#side-bar .quote-btnmenu {
  display: block;
  width: 100%;
  margin-top: 18px;
  text-align: center;
}

body.side-bar-open {
  overflow: hidden;
}

@media (max-width: 1199px) {
  .header-nav__wrapper {
    display: none !important;
  }
  #menu-btn.menu {
    display: inline-flex;
  }
  .header-container.flexbox {
    min-height: 76px;
    justify-content: flex-start;
  }
  .header-logo {
    margin-right: auto;
  }
  .button-area {
    margin-left: auto;
    flex-shrink: 0;
  }
  .button-area .quote-btn {
    display: none;
  }
  .header-nav__dropdown .gallery .flexbox {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .header-nav__dropdown .gallery .flexbox {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .header-nav__dropdown-col {
    display: none;
  }
}

@media (max-width: 575px) {
  .header-logo img {
    max-height: 77px;
  }
  .button-area .rts-btn.btn-primary-alta {
    width: 42px;
    height: 42px;
  }
}
