/* Vilagos kezdolapi hatterek, egyetlen visszafogott logoval. */
.home-soft-background .wm-light::before {
  display: none;
}

.home-soft-background .home-services,
.home-soft-background .home-certificates {
  background: #fff;
}

.home-soft-background .home-about,
.home-soft-background .home-quote {
  background: #f5f6f8;
}

.home-soft-background .home-about {
  overflow: hidden;
}

.home-soft-background .home-about::before {
  display: block;
  inset: auto -110px -150px auto;
  width: clamp(440px, 48vw, 660px);
  height: clamp(440px, 48vw, 660px);
  opacity: .03;
  background: url('../img/logo-exact.png') center / contain no-repeat;
}

@media (max-width: 860px) {
  .home-soft-background .home-about::before {
    right: -100px;
    bottom: -110px;
    width: 440px;
    height: 440px;
    opacity: .025;
  }
}

/* Kozvetlen kezdolapi elerhetosegek es szolgaltatasok. */
.cta-photo-home .contact-link {
  display: block;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .45);
  text-underline-offset: 4px;
  transition: background .2s ease, border-color .2s ease;
}

.cta-photo-home .contact-item.contact-link:hover,
.cta-photo-home .contact-item.contact-link:focus-visible {
  background: rgba(12, 16, 21, .55);
  border-color: rgba(255, 255, 255, .65);
}

.cta-photo-home .contact-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.facility-links {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.facility-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 36px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  color: #353a40;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.4;
}

.facility-links li:last-child a {
  border-bottom: 0;
}

.facility-links a:hover,
.facility-links a:focus-visible {
  color: var(--accent-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.facility-links a:focus-visible {
  outline: 2px solid var(--accent-red);
  outline-offset: 3px;
  border-radius: 3px;
}

.home-mobile-actions {
  display: none;
}

@media (max-width: 860px) {
  .home-has-mobile-actions {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

  .home-mobile-actions {
    position: fixed;
    inset: auto 0 0;
    z-index: 75;
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 12px;
    padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 -8px 30px rgba(13, 16, 20, .12);
  }

  .home-mobile-actions .btn {
    min-width: 0;
    min-height: 48px;
    padding: 11px 12px;
    font-size: .95rem;
    line-height: 1.4;
    text-align: center;
  }

  .home-mobile-actions .btn-white {
    border-color: var(--line);
  }

  .cookie-banner.open ~ .home-mobile-actions {
    display: none;
  }

  .home-has-mobile-actions .back-top {
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  .facility-links a {
    min-height: 44px;
  }
}

/* A kezdolapi elerhetosegek uj hatterfotoja. */
.cta-photo-home {
  background:
    linear-gradient(110deg, rgba(12, 16, 21, .60), rgba(12, 16, 21, .42) 55%, rgba(12, 16, 21, .60)),
    url('../img/contact-alpha-guards.jpg') 55% 60% / cover no-repeat;
  background-color: #101317;
}

.cta-photo-home h3 {
  text-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}

.cta-photo-home .contact-item {
  background: rgba(12, 16, 21, .30);
}

@media (min-width: 861px) and (max-width: 1100px) {
  .cta-photo-home {
    background-position: center, 40% 60%;
  }
}

@media (max-width: 590px) {
  .cta-photo-home {
    background-position: center, 35% 60%;
  }
}

/* A nyitooldal sajat fotoja: az auto es az ajton levo emblema szabadon marad. */
.hero-home-photo {
  --home-copy-edge: calc(max(19px, (100vw - 1240px) / 2) + clamp(160px, 16vw, 220px) + clamp(24px, 2.5vw, 38px) + 460px);
  min-height: 760px;
  background: #101317;
}

.hero-home-photo::before {
  background:
    linear-gradient(90deg, rgba(10, 12, 15, .88) 0%, rgba(10, 12, 15, .76) var(--home-copy-edge), rgba(10, 12, 15, .10) calc(var(--home-copy-edge) + 140px), rgba(10, 12, 15, .04) 100%),
    url('../img/hero-service-vehicle.jpg') center 62% / cover no-repeat;
  transform: none;
}

.hero-home-photo::after {
  pointer-events: none;
  background: linear-gradient(180deg, transparent 84%, rgba(16, 19, 23, .35));
}

.hero-home-photo .hero-home-inner {
  grid-template-columns: clamp(160px, 16vw, 220px) minmax(0, 460px);
  justify-content: start;
  gap: clamp(24px, 2.5vw, 38px);
  padding: 80px 0 120px;
}

.hero-home-photo .hero-logo-panel {
  min-height: 300px;
  padding: 26px 18px;
  border-radius: 24px;
}

.hero-home-photo .hero-logo-large {
  width: 100%;
}

.hero-home-photo .hero-copy-home h1 {
  font-size: clamp(2.8rem, 4vw, 3.5rem);
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .2);
}

.hero-home-photo .hero-copy-home .eyebrow {
  color: #f1f3f5;
}

.hero-home-photo .hero-copy-home .lead {
  color: #f1f3f5;
  font-size: 1.1rem;
  margin: 22px 0 28px;
}

.hero-home-photo .hero-tags {
  gap: 8px;
  margin-top: 26px;
}

.hero-home-photo .hero-tags span {
  background: rgba(16, 19, 23, .58);
  border-color: rgba(255, 255, 255, .3);
}

/* Keskeny kijelzon a foto felul, a szoveg az alatta folytatodo sotet feluleten. */
@media (max-width: 1100px) {
  .hero-home-photo {
    min-height: 0;
  }

  .hero-home-photo::before {
    bottom: auto;
    height: clamp(340px, 62vw, 550px);
    background:
      linear-gradient(180deg, rgba(16, 19, 23, .04) 48%, rgba(16, 19, 23, .16) 65%, #101317 100%),
      url('../img/hero-service-vehicle.jpg') 60% 62% / cover no-repeat;
  }

  .hero-home-photo .hero-home-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: clamp(300px, 54vw, 490px) 0 104px;
  }

  .hero-home-photo .hero-logo-panel {
    position: absolute;
    top: 28px;
    left: 0;
    width: clamp(94px, 15vw, 140px);
    min-height: 0;
    margin: 0;
    padding: 12px;
    border-radius: 16px;
  }

  .hero-home-photo .hero-copy-home {
    width: 100%;
    max-width: 660px;
    margin: 0;
    text-align: left;
  }

  .hero-home-photo .hero-copy-home h1 {
    font-size: clamp(2.45rem, 6.8vw, 3.5rem);
  }

  .hero-home-photo .hero-copy-home h1::after {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-home-photo .hero-actions,
  .hero-home-photo .hero-tags {
    justify-content: flex-start;
  }
}

@media (max-width: 590px) {
  .hero-home-photo .hero-home-inner {
    width: calc(100% - 40px);
    padding-bottom: 92px;
  }

  .hero-home-photo .hero-logo-panel {
    top: 20px;
  }

  .hero-home-photo .hero-actions .btn {
    flex: 1 1 150px;
    padding: 13px 17px;
    font-size: .92rem;
  }

  .hero-home-photo .hero-tags span {
    padding: 6px 10px;
    font-size: .82rem;
  }
}
