html {
  scroll-behavior: smooth;
}

#services,
#tarife,
#gallery {
  scroll-margin-top: 70px;
}

body {
  font-family: "Montserrat", sans-serif;
}

.bg-dark-blue {
  background-color: #2c3e50 !important;
}

.text-accent {
  color: #ffc107 !important;
}

.navbar .nav-link:hover,
.navbar .text-white:hover {
  color: #ffc107 !important;
}

.hero-background {
  height: calc(100vh - 200px);
  background: url("../assets/12.jpg") center center/cover no-repeat;
  position: relative;
  z-index: 0;
}

.overlay {
  background-color: rgba(0, 0, 0, 0.7);
  position: absolute;
  z-index: 1;
}

.text-container-bg {
  background-color: rgba(0, 0, 0, 0.4);
  padding: 2.5rem;
  border-radius: 1rem;
}

.service-card {
  background-color: #f8f9fa;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-card i {
  color: #ffc107;
  transition: transform 0.3s ease;
}

.service-card:hover i {
  transform: scale(1.1) rotate(-3deg);
}

#tarife {
  border-bottom: 1px solid #e0e0e0; /* gri deschis */
  margin-bottom: 4rem; /* spațiu între secțiuni */
  padding-bottom: 3rem;
}

#gallery .col {
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
}

.gallery-img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  border-radius: 0.5rem;
  cursor: pointer;
}

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

.viewer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.viewer img {
  max-width: 90%;
  max-height: 90%;
}
.viewer .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}
.viewer .nav {
  position: absolute;
  top: 50%;
  font-size: 50px;
  color: #fff;
  cursor: pointer;
  user-select: none;
}
.viewer .prev {
  left: 20px;
}
.viewer .next {
  right: 20px;
}

.accent-underline {
  position: relative;
}

.accent-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #ffc107, #ff9800);
  border-radius: 2px;
}

.call-button {
  position: fixed;
  bottom: 50px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #28a745;
  color: #fff;
  font-size: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  z-index: 1050;
  transition: background-color 0.2s ease;
  text-decoration: none;
}

.call-button:hover {
  background-color: #218838;
  color: #fff;
}

@media (max-width: 576px) {
  #gallery .col {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .navbar-nav {
    text-align: center;
  }
  .navbar-nav .nav-item {
    margin: 0.5rem 0;
  }
  .navbar-collapse .btn {
    display: block;
    margin: 1rem auto 0;
  }
}

@media (max-width: 1200px) {
  .navbar-nav {
    text-align: center;
  }
  .navbar-nav .nav-item {
    margin: 0.5rem 0;
  }
  .navbar-collapse .btn {
    display: block;
    margin: 1rem auto 0;
  }
}

@media (min-width: 577px) and (max-width: 992px) {
  #gallery .col {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 768px) {
  .brand-logo {
    max-width: 80px;
  }
}

@media (min-width: 993px) and (max-width: 1200px) {
  #gallery .col {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
  }
}

@media (min-width: 1201px) {
  #gallery .col {
    flex: 0 0 25%;
    max-width: 25%;
  }
}
