/* =============================================================
   Salmira Home Plugin — home.css  v3.1.0
   All selectors scoped to .salmira-home
   ============================================================= */

/* ── Variables & Reset ──────────────────────────────────── */
.salmira-home {
  --max-w:     1400px;
  --side-pad:  3rem;
  --green:     #1a9e5c;
  --white:     #ffffff;
  --text-dark: #1a2b1f;
  --text-mid:  #4a5a50;
  --ff-serif:  'Urbanist', system-ui, sans-serif;
  --ff-body:   'Urbanist', system-ui, sans-serif;

  font-family: var(--ff-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.salmira-home *,
.salmira-home *::before,
.salmira-home *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.salmira-home img {
  max-width: 100%;
  display: block;
}

.salmira-home a {
  text-decoration: none;
  color: inherit;
}

/* ── Buttons ─────────────────────────────────────────────── */
.salmira-home .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
.salmira-home .btn--green {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.salmira-home .btn--green:hover {
  background: #158c4d;
  border-color: #158c4d;
}
.salmira-home .btn--outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.salmira-home .btn--outline:hover {
  background: var(--green);
  color: var(--white);
}

/* ── Animations ──────────────────────────────────────────── */
@keyframes salmiraSlideIn {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes salmiraSlideOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-60px); }
}

/* ── Hero ────────────────────────────────────────────────── */
.salmira-home .hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.salmira-home .hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--side-pad);
  width: 100%;
  display: grid;
  grid-template-columns: 55% 45%;
  align-items: center;
  gap: 2rem;
  min-height: 100vh;
}
.salmira-home .hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 2rem;
  gap: 1.2rem;
}

/* ── Hero text carousel ─────────────────────────────────── */
.salmira-home .hero__carousel {
  position: relative;
  min-height: clamp(200px, 26vw, 320px);
  margin-bottom: 1.5rem;
}
.salmira-home .hero__carousel__slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
}
.salmira-home .hero__carousel__slide.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
  animation: salmiraSlideIn 1s ease-in-out forwards;
  animation-delay: 0s;
}
.salmira-home .hero__carousel__slide.slide-out {
  position: absolute;
  opacity: 0;
  z-index: 1;
  animation: salmiraSlideOut 1s ease-in-out forwards;
  animation-delay: 0s;
}

/* ── Brand images ────────────────────────────────────────── */
.salmira-home .hero__brand {
  display: flex;
  align-items: center;
  line-height: 1;
  height: clamp(40px, 6vh, 70px);
  overflow: visible;
  margin-bottom: 1.2rem;
}
.salmira-home .geneix-logo {
  height: 40px;
  margin-left: -25px;
  width: auto;
  display: block;
  object-fit: contain;
  background: transparent;
}
.salmira-home .brand__label {
  font-family: var(--ff-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.02em;
}
.salmira-home .brand__img {
  max-height: clamp(75px, 12vw, 150px);
  width: auto;
  display: block;
  object-fit: contain;
}
.salmira-home .hero__carousel__slide[data-index="1"] .brand__img,
.salmira-home .hero__carousel__slide[data-index="2"] .brand__img {
  margin-top: -40px;
}
.salmira-home .brand__img--sm {
  max-height: clamp(40px, 6vw, 80px);
}
.salmira-home .brand__text {
  font-size: 0.9rem;
  color: var(--text-mid);
  font-weight: 500;
  line-height: 1.6;
  padding: 0.5rem;
}

/* ── Headline & subtext ─────────────────────────────────── */
.salmira-home .hero__headline {
  font-family: var(--ff-body);
  font-size: 56px;
  font-weight: 700;
  line-height: 1.14;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  letter-spacing: -.01em;
}
.salmira-home .hero__sub {
  font-size: clamp(1.4rem, 1.8vw, 1.6rem);
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 0.5rem;
  font-weight: 300;
  max-width: 460px;
}
.salmira-home .hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 0.5rem;
}

/* ── Visual / right column ──────────────────────────────── */
.salmira-home .hero__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 100vh;
  padding: 0;
  z-index: 10;
  overflow: visible;
}

/* ── Partner badge ──────────────────────────────────────── */
.salmira-home .partner-badge {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: .75rem;
  background: var(--white);
  border: 1.5px solid #c8ecd8;
  border-radius: 999px;
  padding: 1rem 1.4rem 1rem 1.6rem;
  box-shadow: 0 4px 20px rgba(26,158,92,.1);
  width: 520px;
  max-width: 100%;
}
.salmira-home .partner-badge__label {
  font-size: 1.25rem;
  color: var(--text-mid);
  line-height: 1.45;
  flex-shrink: 0;
}
.salmira-home .partner-badge__label strong {
  font-weight: 600;
  color: var(--text-dark);
}
.salmira-home .partner-badge__avatars {
  display: flex;
  align-items: center;
  margin-left: auto;
}
.salmira-home .avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid var(--white);
  margin-left: -9px;
  flex-shrink: 0;
}
.salmira-home .avatar:first-child { margin-left: 0; }
.salmira-home .avatar--1 { background: linear-gradient(135deg,#c9a880,#8a6040); }
.salmira-home .avatar--2 { background: linear-gradient(135deg,#b09070,#7a5030); }
.salmira-home .avatar--3 { background: linear-gradient(135deg,#a08060,#604020); }
.salmira-home .avatar--4 { background: linear-gradient(135deg,#906050,#503020); }
.salmira-home .partner-badge__arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: #d4f5e5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s;
}
.salmira-home .partner-badge__arrow:hover { background: #b8edcf; }
.salmira-home .partner-badge__arrow svg   { width: 17px; }

/* ── Products image area ────────────────────────────────── */
.salmira-home .products-img-wrap {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin-top: auto;
  margin-left: auto;
  z-index: 6;
  pointer-events: none;
}
.salmira-home .products-bg-wrap {
  position: absolute;
  top: -20%; left: -20%;
  width: 140%; height: 140%;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}
.salmira-home .products-bg-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--salmira-products-bg) no-repeat center center / contain;
  opacity: 0.4;
  transform: translateX(-40px) scale(1.2);
}

/* ── Products image carousel ────────────────────────────── */
.salmira-home .products-carousel {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 460px;
}
.salmira-home .products-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
}
.salmira-home .products-slide.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
  animation: salmiraSlideIn 1s ease-in-out forwards;
  animation-delay: 0s;
}
.salmira-home .products-slide.slide-out {
  position: absolute;
  opacity: 0;
  z-index: 1;
  animation: salmiraSlideOut 1s ease-in-out forwards;
  animation-delay: 0s;
}
.salmira-home .products-img {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.10));
  z-index: 2;
}
.salmira-home .products-slide[data-index="0"] .products-img {
  transform: scale(1.60) translateX(-30px);
}
.salmira-home .products-slide[data-index="1"] .products-img,
.salmira-home .products-slide[data-index="2"] .products-img {
  transform: scale(1.35) translateX(-30px);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (min-width: 1440px) {
  .salmira-home .products-img-wrap { max-width: 680px; }
}
@media (min-width: 1920px) {
  .salmira-home .products-img-wrap { max-width: 780px; }
}
@media (max-width: 1023px) {
  .salmira-home .hero { overflow: visible; }
  .salmira-home .hero__inner {
    grid-template-columns: 1fr;
    min-height: unset;
    padding: 1rem var(--side-pad) 0;
  }
  .salmira-home .hero__content { padding-right: 0; order: 1; }
  .salmira-home .hero__sub     { max-width: 100%; }
  .salmira-home .hero__visual {
    position: relative;
    min-height: unset;
    max-width: 100%;
    align-items: center;
    padding-top: 1rem;
    order: 2;
    overflow: visible;
  }
  .salmira-home .products-img-wrap {
    position: static;
    width: 100%;
    max-width: 600px;
    margin: 1.5rem auto 0;
  }
  .salmira-home .products-carousel { min-height: unset; height: auto; }
  .salmira-home .products-slide[data-index="0"] .products-img,
  .salmira-home .products-slide[data-index="1"] .products-img,
  .salmira-home .products-slide[data-index="2"] .products-img {
    transform: translateX(0);
  }
  .salmira-home .products-slide[data-index="0"] .products-img {
    transform: scale(1.3) translateX(0);
  }
  .salmira-home .products-bg-wrap {
    left: 0; top: 0;
    width: 100%; height: 100%;
  }
  .salmira-home .products-bg-wrap::after {
    background-position: center center;
    background-size: contain;
    transform: scale(1.8) translateY(0);
    opacity: 0.7;
  }
}
@media (max-width: 767px) {
  .salmira-home .geneix-logo   { height: 32px; }
  .salmira-home .partner-badge { width: 100%; max-width: 500px; }
  .salmira-home .products-img-wrap {
    position: static;
    width: 100%;
    max-width: 420px;
    margin: 1.2rem auto 0;
  }
  .salmira-home .products-bg-wrap { left: 0; width: 100%; }
  .salmira-home .products-bg-wrap::after {
    background-position: center center;
    background-size: contain;
    transform: scale(1.8) translateY(0);
  }
}
@media (max-width: 480px) {
  .salmira-home .hero__sub         { font-size: 1.2rem; }
  .salmira-home .products-img-wrap { max-width: 320px; }
  .salmira-home .partner-badge     { max-width: 420px; }
  .salmira-home .products-bg-wrap  { left: 0; width: 100%; }
  .salmira-home .products-bg-wrap::after {
    background-position: center center;
    background-size: contain;
    transform: scale(1.8) translateY(0);
    opacity: 0.4;
  }
}
