html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.home-hero {
  position: relative;
  color: #fff;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.home-hero .carousel {
  max-width: 1920px;
  margin-left: auto;
  margin-right: auto;
  width: 100vw;
  border-radius: 24px;
  overflow: hidden;
}

.home-hero h1.display-5 {
  font-size: 2.6rem;
}

.home-hero h2.h1 {
  font-size: 2.2rem;
}

.hero-slide {
  height: 600px;
  background-size: cover;
  background-position: center;
}

.carousel-item img {
  height: 600px;
  width: 100%;
  object-fit: cover;
  display: block;
}

.hero-slide.slide-1 {
  background-image: linear-gradient(120deg, rgba(15, 23, 42, 0.75), rgba(197, 53, 69, 0.9)), url("/images/depo_raf_sistemleri_cicek_raf.jpg");
}

.hero-slide.slide-2 {
  background-image: linear-gradient(120deg, rgba(197, 53, 69, 0.9), rgba(55, 65, 81, 0.9)), url("/images/agir_yuk_raf_sistemleri.jpg");
}

.hero-slide.slide-3 {
  background-image: linear-gradient(120deg, rgba(15, 23, 42, 0.9), rgba(197, 53, 69, 0.9)), url("/images/market_raflari.jpg");
}

.home-features {
  background-color: #ffffff;
}

.feature-card {
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  background-color: #f9fafb;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.custom-racking-intro {
  max-width: 800px;
}

.custom-racking-photo {
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  background-color: #f9fafb;
  overflow: hidden;
  cursor: zoom-in;
}

.custom-racking-photo img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.25s ease;
}

.custom-racking-photo img:hover {
  transform: scale(1.03);
}

.custom-racking-lightbox .modal-content {
  background-color: transparent;
  border: 0;
}

.custom-racking-lightbox img {
  border-radius: 0.5rem;
}

.custom-racking-lightbox .modal-dialog {
  max-width: min(1200px, 95vw);
}

.custom-racking-lightbox .modal-dialog img {
  max-height: 90vh;
  width: auto;
}

.home-contact-cta {
  border-top: 1px solid #e5e7eb;
  background: linear-gradient(90deg, rgba(197, 53, 69, 0.04), rgba(197, 53, 69, 0));
}

.header-top-strip {
  position: relative;
  color: #fff;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.topbar-social .bi-instagram {
  color: #E1306C;
  font-size: 1.8rem;
}

.topbar-social .bi-wordpress {
  color: #21759B;
  font-size: 1.8rem;
}

.topbar-social .bi-facebook {
  color: #1877F2;
  font-size: 1.8rem;
}

.topbar-social .bi-twitter-x {
  color: #1DA1F2;
  font-size: 1.8rem;
}

.topbar-social .bi-pinterest {
  color: #E60023;
  font-size: 1.8rem;
}

.topbar-social .bi-youtube {
  color: #FF0000;
  font-size: 1.8rem;
}

.blogger-icon {
  width: 1.7rem;
  height: 1.7rem;
  object-fit: contain;
  display: block;
  font-size: 1.8rem;
}

/* Alt beyaz navbar */
.main-navbar {
  background-color: #ffffff !important;
}

.main-navbar .navbar-brand span {
  color: #c52835;
}

.main-navbar .navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  margin-left: 0;
}

/* Yeni menü konteyneri (hamburgersiz) */
.main-navbar-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.main-navbar-menu .navbar-nav {
  flex-direction: row;
}

.main-navbar .nav-link {
  font-weight: 600;
  color: #c52835 !important;
  font-size: 1.02rem;
  padding-left: 0.55rem;
  padding-right: 0.55rem;
}

.main-navbar .navbar-nav .btn-primary {
  font-size: 0.98rem;
  padding: 0.45rem 2.6rem;
  min-width: 150px;
}

@media (min-width: 992px) {
  .main-navbar .nav-link {
    white-space: nowrap;
  }
}

.main-navbar .nav-link:hover {
  color: #d63a46 !important;
}

/* Ürünlerimiz dropdown menüsü */
.dropdown-menu-products {
  width: max-content;
  min-width: 0;
  padding: 0.5rem 0.75rem;
}

.dropdown-menu-products .products-main-heading {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #c52835;
}

.dropdown-menu-products .dropdown-item {
  font-size: 1rem;
  font-weight: 600;
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
}

.dropdown-products-grid {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
}

.dropdown-products-grid .products-column {
  flex: 1 1 0;
}

.dropdown-products-grid .products-column .dropdown-item {
  padding-left: 0;
}

@media (min-width: 768px) {
  .main-navbar .dropdown-menu-products {
    left: 50% !important;
    transform: translateX(-50%);
  }
}

.footer {
  font-size: 0.9rem;
}

.site-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
}

/* Koyu kırmızı kurumsal renkler */
a {
  color: #c52835;
}

a:hover {
  color: #d63a46;
}

.btn-primary {
  background-color: #c52835;
  border-color: #c52835;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #d63a46;
  border-color: #d63a46;
}

.home-references {
  background-color: #f9fafb;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.home-references-title {
  font-weight: 600;
}

.references-scroller {
  overflow: hidden;
  position: relative;
}

.references-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 0.75rem 0;
  animation: references-scroll 35s linear infinite;
}

.references-track img {
  height: 80px;
  width: auto;
  object-fit: contain;
  filter: grayscale(0.3);
  opacity: 0.85;
  transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
}

.references-track img:hover {
  transform: scale(1.05);
  filter: grayscale(0);
  opacity: 1;
}

@keyframes references-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Footer */
.site-footer {
  background-color: #b81a2b;
  color: #f9fafb;
  font-size: 0.9rem;
}

.site-footer .footer-title {
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.site-footer .footer-links li + li {
  margin-top: 0.3rem;
}

.site-footer .footer-links a {
  color: #f9fafb;
  text-decoration: none;
}

.site-footer .footer-links a:hover {
  color: #ffe4e4;
  text-decoration: underline;
}

.site-footer .footer-contact li + li {
  margin-top: 0.25rem;
}

.site-footer .footer-social a {
  color: #f9fafb;
  font-size: 1.1rem;
}

.site-footer .footer-social a:hover {
  color: #ffe4e4;
}

.site-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 0.75rem;
}

/* Mobil düzen: yatay taşmayı engelle */
@media (max-width: 767.98px) {
  html,
  body {
    overflow-x: hidden;
  }

  .header-top-strip {
    width: 100%;
    margin-left: 0;
  }

  .home-hero {
    width: 100%;
    margin-left: 0;
  }

  /* Mobilde header: logo üstte, menü alt alta ve tam genişlikte */
  .main-navbar .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .main-navbar-menu {
    width: 100%;
    justify-content: center;
  }

  .main-navbar-menu .navbar-nav {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .main-navbar .nav-link {
    font-size: 0.95rem;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    text-align: center;
  }

  .main-navbar .navbar-nav .nav-item {
    width: 100%;
  }

  .main-navbar .navbar-nav .btn-primary {
    font-size: 0.95rem;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    margin-top: 0.25rem;
  }

  /* Marka metnini mobilde biraz küçült */
  .main-navbar .navbar-brand span {
    font-size: 1.4rem;
  }

  /* Sosyal ikonları ortala ve biraz küçült */
  .navbar .social-nav {
    justify-content: center;
  }

  .navbar .social-nav .bi {
    font-size: 1.3rem;
  }

  .main-navbar .nav-link {
    font-size: 0.95rem;
  }

  .btn-primary {
    font-size: 0.95rem;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
  }
}