:root {
  --szin-piros: #d32f2f;
  --szin-piros-halvany: #fde8e8;
  --szin-sotet: #212529;
  --szin-szurke: #f8f9fa;
  --szin-feher: #ffffff;
  --global-border-radius: 0.5rem;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #444;
  padding-top: 80px;
}

/* tipografia*/
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--szin-sotet);
}
.section-title {
  font-weight: 800;
  margin-bottom: 3rem;
}

/* nav */
.navbar {
  padding-top: 1rem;
  padding-bottom: 1rem;
  background-color: var(--szin-feher);
  transition: all 0.4s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
.navbar-brand {
  font-weight: 800;
  font-size: 1.4rem;
}
.nav-link {
  font-weight: 600;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  transition: color 0.3s ease;
}
.nav-link:hover {
  color: var(--szin-piros);
}
.navbar.scrolled {
  background-color: var(--szin-feher) !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06) !important;
}
.btn-danger {
  background-color: var(--szin-piros);
  border-color: var(--szin-piros);
  border-radius: var(--global-border-radius);
  padding: 0.6rem 1.2rem;
  font-weight: 700;
  transition: all 0.3s ease;
}
.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

/* hero*/
#heroCarousel .carousel-item {
  height: 90vh;
  min-height: 600px;
}
#heroCarousel .carousel-item img {
  object-fit: cover;
  object-position: center;
    width: 100%;
  height: 100%;

}
#heroCarousel .carousel-item::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.6); 
}
#heroCarousel .carousel-caption {
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
  z-index: 2;
  text-shadow: 0 2px 20px rgba(255, 255, 255, 0.9);
}
.carousel-indicators [data-bs-target] {
  width: 12px; height: 12px; border-radius: 50%;
  background-color: rgba(255,255,255,0.5); border: none;
  margin: 0 5px;
}
.carousel-indicators .active {
  background-color: var(--szin-piros);
}

/* section */
section {
  padding: 80px 0;
}
.bg-light { background-color: var(--szin-szurke) !important; }

/* rolunk*/
#rolunk img {
  border: 10px solid var(--szin-feher);
}

/* szolgaltatasok kartyak */
.card {
  border: none;
  border-radius: var(--global-border-radius);
  box-shadow: 0 5px 25px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.1);
}
.card-body { padding: 2rem; }
.card-title { font-weight: 700; margin-bottom: 1rem; }
.card-text { color: #666; font-size: 0.95rem; }

.service-icon-container {
  width: 80px; height: 80px;
  margin: 0 auto 1.5rem auto;
  background-color: var(--szin-piros-halvany);
  border-radius: 50%;
  display: flex; justify-content: center; align-items: center;
  transition: all 0.3s ease;
}
.service-icon {
  width: 40px; height: 40px;
  transition: all 0.3s ease;
}
.card:hover .service-icon-container {
  background-color: var(--szin-piros);
  transform: scale(1.1);
}
.card:hover .service-icon {
  filter: brightness(0) invert(1);
}

/* miert mi lista */
#miert-minket ul {
  list-style-type: none;
  padding-left: 0;
}
#miert-minket ul li {
  padding: 1rem 0;
  border-bottom: 1px solid #f0f0f0;
}
#miert-minket ul li:last-child {
    border-bottom: none;
}
.list-title {
  font-size: 1.1rem;
  font-weight: 700;
  padding-left: 2.8rem;
  position: relative;
}
.list-title::before {
  content: '✔';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--szin-feher);
  background-color: var(--szin-piros);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
  box-shadow: 0 2px 5px rgba(211, 47, 47, 0.4);
}
.list-description {
  font-size: 0.9rem;
  font-weight: 400;
  color: #6c757d;
  margin-top: 0.25rem;
  padding-left: 2.8rem;
}

/* galeria */
.gallery-item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--global-border-radius);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-item::after {
  content: '+';
  font-weight: 900;
  font-size: 2.5rem;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(211, 47, 47, 0.7);
  color: var(--szin-feher);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gallery-item:hover::after {
  opacity: 1;
}

/* galeria modal */
#galleryModal .modal-dialog {
  display: flex;
  align-items: center;
  min-height: calc(100% - 1rem);
}
#galleryModal .modal-content {
  background-color: transparent;
  border: none;
}
#galleryModal .modal-body {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}
#galleryModal #modalImage {
  width: 90%;
  height: 90%;
  max-height: 90vh; 
  object-fit: contain;
}

/* galeria x gomb */

#galleryModal .btn-close {
    position: fixed;
    top: 20px;
    right: 30px;
    z-index: 1060; 
    background-color: var(--szin-feher) !important;
    border: 2px solid var(--szin-piros);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    opacity: 0.9;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23d32f2f'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.607a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 1em;
    filter: none;
    transition: all 0.3s ease;
}

/* hover */
#galleryModal .btn-close:hover {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

#galleryModal .btn-close:focus {
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* kapcsolat es footer */
#kapcsolat { padding: 60px 0; }
footer {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid #e9ecef;
}

/* responsive */
@media (max-width: 768px) {

  /* carousel magassag */
  #heroCarousel .carousel-item {
    height: auto !important;
    min-height: 0; 
  }

  #heroCarousel .carousel-item img {
    height: auto;
    aspect-ratio: auto;
  }

  /* szovegdoboz */
  #heroCarousel .carousel-caption {
    position: relative; 
    transform: none;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    background-color: var(--szin-sotet);
    width: 100%;
    margin: 0;
    padding: 2rem 1.5rem;
    text-shadow: none; 
    
    /* a "d-none d-md-block" feluliras */
    display: block !important;
  }

  #heroCarousel .carousel-caption h1 {
    font-size: 1.8rem; 
    color: var(--szin-piros);
  }

  #heroCarousel .carousel-caption .lead {
    font-size: 1rem; 
    color: rgba(255, 255, 255, 0.8);
  }

  /* kisebb gombok */
  #heroCarousel .hero-btn {
      font-size: 0.9rem;
      padding: 0.6rem 1rem;
  }

}