/* ===== Olcsobogre.hu – custom.css ===== */

/* 1) Képek reszponzivitása */
img, .img-fluid { max-width: 100%; height: auto; }
.mbr-figure img { width: 100%; height: auto; object-fit: contain; }

/* 2) Logó méret egységesítés */
.logo-img { height: 3.2rem; }

/* 3) Fekete hátterű szakaszok (heading és CTA) */
section#content3-b,
section#customcta {
  background-color: #000;
  color: #fff;
  padding: 2rem 0;
}

/* 4) Parallax fotóháttér (régi background blokk) + finom átmenetek a fekete szakaszok felé */
#header3-e {
  position: relative;
  overflow: hidden;
  background-attachment: fixed;
  background-position: center center;
  background-size: cover;
}
#header3-e::before,
#header3-e::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 120px;
  z-index: 1;
  pointer-events: none;
}
#header3-e::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0));
}
#header3-e::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,1), rgba(0,0,0,0));
}

/* 5) Mobil tipográfia finomhangolás */
@media (max-width: 576px) {
  .display-1 { font-size: 2.2rem; }
  .display-2 { font-size: 1.8rem; }
  .display-5 { font-size: 1.05rem; }
  .display-7 { font-size: 0.95rem; }
}

/* 6) Biztonsági fixek képekre a Mobirise szekciókban */
.img-block img,
.features6 .mbr-figure img,
.features1 .mbr-figure img {
  max-width: 100% !important;
  height: auto !important;
}


/* 7) Lábléc (footer) – feketéből világosodó gradient, bal: menü, jobb: elérhetőség */
#footer1-1n {
  background: linear-gradient(to top, #000 0%, #121212 55%, #1e1e1e 100%);
  color: #f2f2f2;
  padding: 2.5rem 0;
}
#footer1-1n a { color: #ffffff; text-decoration: none; }
#footer1-1n a:hover, #footer1-1n a:focus { text-decoration: underline; }

#footer1-1n .footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: .5rem 1rem;
}
#footer1-1n .footer-menu li { margin: 0; padding: 0; }
#footer1-1n .footer-menu a { display: inline-block; padding: .2rem 0; }

#footer1-1n .footer-contact {
  text-align: right;
  line-height: 1.6;
}
#footer1-1n .footer-contact .company { font-weight: 700; }
#footer1-1n .footer-contact .email a,
#footer1-1n .footer-contact .phone a { white-space: nowrap; }

@media (max-width: 767.98px) {
  #footer1-1n .footer-contact { text-align: left; margin-top: 1rem; }
  #footer1-1n .footer-menu { grid-template-columns: 1fr; }
}

/* ===== Áraink blokkok hangolása ===== */
#features1-g h4.mbr-section-subtitle,
#features1-g ~ section h4.mbr-section-subtitle {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}
#features1-g h4.mbr-section-subtitle::before,
#features1-g ~ section h4.mbr-section-subtitle::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #4caf50;
  font-size: 1.2rem;
}
#features1-g p.mbr-text,
#features1-g ~ section p.mbr-text {
  color: #e0e0e0;
  margin-bottom: 1.5rem;
}


/* Gallery specific */
#gallery-grid .img-block { padding: 0.5rem; }



#gallery-grid .img-block { padding: 0.5rem; }
#gallery-grid .mbr-figure img { width: 100%; height: auto; display: block; }


/* ===== WOWSlider fix: no fullscreen; keep footer visible ===== */
#wowslider-container1 {
  position: relative !important;
  max-height: 100vh;            /* don't let it fill the entire screen */
  height: auto !important;
  overflow: hidden;
  margin-bottom: 2rem;         /* space above footer */
  z-index: 1;
}
#wowslider-container1.ws_fullscreen,
#wowslider-container1 .ws_fullscreen {
  max-height: 100vh !important;
  height: auto !important;
}
#wowslider-container1 .ws_images,
#wowslider-container1 .ws_images ul,
#wowslider-container1 .ws_images li {
  height: auto !important;
  min-height: 0 !important;
}
#wowslider-container1 .ws_images img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain;         /* keep aspect ratio without overflow */
}
/* Ensure footer sits above */
#footer1-1n { position: relative; z-index: 5; }


/* ===== WOWSlider strong override: prevent covering footer ===== */
#wowslider-container1 {
  position: static !important;       /* no overlay positioning */
  max-height: 100vh !important;       /* keep reduced height */
  height: auto !important;
  overflow: hidden !important;
  clear: both !important;
  margin-bottom: 3rem !important;    /* space before footer */
  z-index: 0 !important;
}
#wowslider-container1 * {
  z-index: 0 !important;             /* drop stacking to avoid overlaying footer */
}
#wowslider-container1.ws_fullscreen,
#wowslider-container1 .ws_fullscreen {
  position: static !important;
  max-height: 100vh !important;
  height: auto !important;
}


/* ===== WOWSlider ultra override (force non-fullscreen) ===== */
html, body { overflow: auto !important; }
#wowslider-container1,
#wowslider-container1 *,
#wowslider-container1 .ws_images,
#wowslider-container1 .ws_images ul,
#wowslider-container1 .ws_images li {
  position: static !important;
  height: auto !important;
  max-height: 100vh !important;
}
#wowslider-container1 { margin-bottom: 3rem !important; z-index: 0 !important; }
#footer1-1n { position: relative !important; z-index: 5 !important; }


/* ===== WOWSlider absolute fullscreen kill (final) ===== */
html.ws_fullscreen, body.ws_fullscreen { overflow: auto !important; }
#wowslider-container1,
#wowslider-container1 .ws_images,
#wowslider-container1 .ws_images ul,
#wowslider-container1 .ws_images li,
#wowslider-container1 .ws_images img {
  position: static !important;
  height: auto !important;
  max-height: 100vh !important;
}
#wowslider-container1 { margin-bottom: 3rem !important; z-index: 0 !important; }
#footer1-1n { position: relative !important; z-index: 5 !important; }


/* ===== WOWSlider (#wowslider-20) fullscreen override ===== */
#wowslider-20 {
  position: relative !important;
  max-height: 100vh !important;
  height: auto !important;
  overflow: hidden !important;
  margin-bottom: 3rem !important;
  z-index: 0 !important;
}
#wowslider-20 .ws_images,
#wowslider-20 .ws_images ul,
#wowslider-20 .ws_images li,
#wowslider-20 .ws_images img {
  position: static !important;
  height: auto !important;
  max-height: 100vh !important;
}
#footer1-1n { position: relative !important; z-index: 5 !important; }


/* ===== WOWSlider (#wowslider-20) aspect-ratio preserve ===== */
#wowslider-20 .ws_images ul,
#wowslider-20 .ws_images li {
  height: 100vh !important;        /* consistent track height */
}
#wowslider-20 .ws_images li {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
#wowslider-20 .ws_images img {
  max-height: 100% !important;
  max-width: 100% !important;
  width: auto !important;          /* keep image ratio */
  height: auto !important;         /* keep image ratio */
  object-fit: contain !important;  /* no cropping */
}

/* Mobile fine-tune */
@media (max-width: 767.98px) {
  #wowslider-20 .ws_images ul,
  #wowslider-20 .ws_images li { height: 100vh !important; }
}

/* ===== Force WOWSlider (#wowslider-20) to full height 100vh ===== */
#wowslider-20,
#wowslider-20 .ws_images,
#wowslider-20 .ws_images ul,
#wowslider-20 .ws_images li {
  height: 100vh !important;
  max-height: 100vh !important;
}
#wowslider-20 .ws_images img {
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}
