/* =========================================================
   HOME.CSS - RESET FINAL PENTRU BACKGROUND
   Sidebar-ul si meniul sunt controlate DOAR de style.css.
   Aici sunt doar regulile pentru prima pagina.
   ========================================================= */

.home {
  position: fixed;
  left: 290px;
  top: 0;
  width: calc(100vw - 290px);
  height: 100vh;
  overflow: hidden;
  background: #ffffff;
}

.home-hero {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 45% 55%;
  align-items: center;
  padding: 0 70px;
  overflow: hidden;
  background: #ffffff;
}

.home-background {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.72), rgba(255,255,255,0.72)), url("./images/home-bg.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.home-text {
  position: relative;
  z-index: 3;
  max-width: 560px;
}

.home-text h1 {
  font-size: 54px;
  line-height: 1.08;
  font-weight: 900;
  color: #1f1f1f;
  margin-bottom: 26px;
}

.accent-line {
  width: 80px;
  height: 5px;
  background: #2f8cff;
  border-radius: 999px;
  margin-bottom: 28px;
}

.home-text p {
  font-size: 22px;
  line-height: 1.65;
  color: #575757;
  margin-bottom: 36px;
  max-width: 470px;
}

.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 34px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.5px;
  transition: 0.25s;
}

.home-button:hover {
  transform: translateY(-2px);
  background: #202020;
}

.home-logo-bg {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-logo-bg img {
  width: 660px;
  max-width: 95%;
  height: auto;
  opacity: 0.95;
  filter: drop-shadow(0 30px 35px rgba(0,0,0,0.12));
}

@media screen and (max-width: 1100px) {
  .home {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    overflow: visible;
    background: #ffffff;
  }

  .home-hero {
    min-height: 760px;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 58px 24px 70px;
  }

  .home-background {
    background-image: linear-gradient(rgba(255,255,255,0.78), rgba(255,255,255,0.78)), url("./images/bgmobil.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
  }

  .home-text {
    max-width: 100%;
    z-index: 3;
  }

  .home-text h1 {
    font-size: 38px;
    line-height: 1.15;
    max-width: 620px;
    margin: 0 auto 22px;
  }

  .accent-line {
    margin: 0 auto 24px;
  }

  .home-text p {
    font-size: 18px;
    line-height: 1.6;
    max-width: 540px;
    margin: 0 auto 30px;
  }

  .home-button {
    padding: 14px 26px;
    font-size: 13px;
  }

  .home-logo-bg {
    margin-top: 54px;
  }

  .home-logo-bg img {
    width: 360px;
    max-width: 88%;
  }
}

@media screen and (max-width: 600px) and (orientation: portrait) {
  .home {
    background: #ffffff;
  }

  .home-hero {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 9 / 16;
    padding: 0;
    display: block;
    position: relative;
    overflow: hidden;
    text-align: center;
    background: #ffffff;
  }

  .home-background {
    background-image: linear-gradient(rgba(255,255,255,0.72), rgba(255,255,255,0.72)), url("./images/bgmobil.png");
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
  }

  .home-text {
    position: absolute;
    z-index: 3;
    top: 4%;
    left: 18px;
    right: 18px;
    max-width: none;
    width: auto;
    text-align: center;
  }

  .home-text h1 {
    font-size: clamp(25px, 7.2vw, 34px);
    line-height: 1.08;
    margin: 0 auto 16px;
    max-width: 440px;
  }

  .accent-line {
    width: 76px;
    height: 5px;
    margin: 0 auto 22px;
  }

  .home-text p {
    font-size: clamp(14px, 4.1vw, 18px);
    line-height: 1.45;
    margin: 0 auto 26px;
    max-width: 440px;
  }

  .home-button {
    font-size: 12px;
    padding: 13px 26px;
  }

  .home-logo-bg {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    top: 58%;
    margin: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .home-logo-bg img {
    width: min(270px, 58vw);
    max-width: none;
    height: auto;
    opacity: 0.95;
  }
}

@media screen and (max-width: 950px) and (orientation: landscape) {
  .home-hero {
    min-height: 520px;
    padding: 35px 36px;
    display: grid;
    grid-template-columns: 45% 55%;
    text-align: left;
  }

  .home-background {
    background-image: linear-gradient(rgba(255,255,255,0.74), rgba(255,255,255,0.74)), url("./images/home-bg.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
  }

  .home-text {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    text-align: left;
  }

  .home-text h1 {
    font-size: 30px;
    text-align: left;
    margin: 0 0 16px;
  }

  .accent-line {
    margin: 0 0 18px;
  }

  .home-text p {
    font-size: 15px;
    margin: 0 0 22px;
  }

  .home-logo-bg {
    position: relative;
    top: auto;
    transform: none;
    margin-top: 0;
  }

  .home-logo-bg img {
    width: 320px;
  }
}
