/*
 * heroes/_hero-home.css — Hero homepage (slider) — Deviz Zugrav v4.4.0
 * Include DOAR în index.php / index.html
 */

/* ============================================================
   HERO SLIDER — container
   ============================================================ */
.hero {
  margin-top: var(--nh);
  background: var(--dk);
  position: relative;
  overflow: hidden;
}

/* Strip care conține slide-urile aliniate orizontal */
.str {
  display: flex;
  transition: transform .62s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

/* ============================================================
   SLIDE — element de bază
   ============================================================ */
.sl2 {
  min-width: 100%;
  min-height: clamp(480px, 64vh, 680px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Fundaluri per slide */
.sbg {
  position: absolute;
  inset: 0;
}
.s1 .sbg {
  background: linear-gradient(135deg, #070d1a 0%, #0A2E5C 52%, #0D4F8B 100%);
}
.s2 .sbg {
  background: linear-gradient(135deg, #0A2E5C 0%, #0e3a6b 60%, #125079 100%);
}
.s3 .sbg {
  background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
}

/* Overlay radial decorativ per slide */
.sbg::after {
  content: '';
  position: absolute;
  inset: 0;
}
.s1 .sbg::after {
  background: radial-gradient(ellipse at 78% 35%, rgba(33,150,243,.14), transparent 55%);
}
.s2 .sbg::after {
  background: radial-gradient(ellipse at 22% 65%, rgba(232,117,44,.11), transparent 50%);
}
.s3 .sbg::after {
  background: radial-gradient(ellipse at 50% 28%, rgba(33,150,243,.11), transparent 55%);
}

/* ============================================================
   SLIDE INNER — grid 70/30
   ============================================================ */
.sin {
  position: relative;
  z-index: 2;
  max-width: var(--mw);
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 48px;
  align-items: center;
}

/* ============================================================
   TEXT (col stânga)
   ============================================================ */
.stxt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Badge */
.stxt .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 6px;
  margin-bottom: 22px;
}
.stxt .badge.gr {
  color: #166534;
  background: #DCFCE7;
  border: 1px solid rgba(34,197,94,.4);
}
.stxt .badge.or {
  color: #92400E;
  background: var(--o1);
  border: 1px solid rgba(245,158,75,.4);
}

/* H1 / H2 */
.stxt h1, .stxt h2 {
  font-size: clamp(28px, 3.8vw, 52px);
  font-weight: 800;
  color: #fff;
  line-height: 1.13;
  margin-bottom: 18px;
  letter-spacing: -.03em;
}
.stxt h1 em, .stxt h2 em {
  font-style: normal;
  color: var(--o5);
}

/* Paragraf */
.stxt p {
  font-size: 16px;
  color: rgba(255,255,255,.58);
  line-height: 1.72;
  margin-bottom: 28px;
  max-width: 500px;
}

/* Butoane */
.hbtns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================================
   VISUAL (col dreapta)
   ============================================================ */
.svis {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   TELEFON ANIMAT (Slide 1)
   ============================================================ */
@keyframes fy {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-9px); }
}
.pm {
  width: 210px;
  height: 420px;
  background: #1a1f2e;
  border-radius: 32px;
  border: 3px solid rgba(255,255,255,.12);
  padding: 10px;
  box-shadow: 0 32px 64px rgba(0,0,0,.4);
  animation: fy 4s ease-in-out infinite;
  transition: transform .4s;
}
.psc {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pt {
  background: var(--b5);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.pt span { color: #fff; font-size: 9px; font-weight: 700; letter-spacing: .06em; }
.pt .pd  { width: 6px; height: 6px; background: rgba(255,255,255,.4); border-radius: 50%; }
.pb2 {
  padding: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow: hidden;
}
.pr {
  background: var(--g1);
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: opacity .3s, transform .3s;
}
.pr .lbl { font-size: 9px; color: var(--g5); font-weight: 500; }
.pr .val { font-size: 10px; font-weight: 700; color: var(--dk); }
.pto {
  background: var(--o1);
  border-radius: 7px;
  padding: 10px;
  text-align: center;
  margin-top: auto;
  flex-shrink: 0;
}
.pto .tl { font-size: 8px; color: #7a3d0e; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.pto .tv { font-size: 19px; font-weight: 800; color: var(--o6); }
.pbtn-ph {
  background: var(--o6);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px;
  font-size: 9px;
  font-weight: 700;
  width: 100%;
  margin-top: 6px;
  cursor: pointer;
  letter-spacing: .04em;
  font-family: var(--f);
  flex-shrink: 0;
}

/* ============================================================
   CARDURI STATISTICI (Slide 3)
   ============================================================ */
.scg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.sch {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 18px 20px;
  text-align: center;
}
.sch .n {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.sch .n em {
  font-size: 15px;
  font-weight: 500;
  color: var(--o5);
  font-style: normal;
}
.sch .l {
  font-size: 12px;
  color: rgba(255,255,255,.44);
  margin-top: 6px;
  line-height: 1.4;
}

/* ============================================================
   AI CHAT LIVE (Slide 2)
   ============================================================ */
.ach {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.am {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.am.u { flex-direction: row-reverse; }
.av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.av.b { background: var(--b5); color: #fff; }
.av.o { background: var(--o6); color: #fff; }
.ab {
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.5;
  max-width: 240px;
}
.ab.b {
  background: rgba(33,150,243,.18);
  color: rgba(255,255,255,.84);
  border-bottom-left-radius: 3px;
}
.ab.o {
  background: rgba(232,117,44,.18);
  color: rgba(255,255,255,.84);
  border-bottom-right-radius: 3px;
}
/* Typing dots */
@keyframes aiDot {
  0%, 80%, 100% { transform: scale(.7); opacity: .5; }
  40%           { transform: scale(1.2); opacity: 1; }
}
.ai-typing { display: flex !important; align-items: center; gap: 4px; padding: 10px 14px !important; }
.ai-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(33,150,243,.5);
  animation: aiDot .9s ease-in-out infinite;
}
.ai-typing span:nth-child(2) { animation-delay: .18s; }
.ai-typing span:nth-child(3) { animation-delay: .36s; }

/* ============================================================
   NAVIGARE SLIDER
   ============================================================ */
.hdots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.hd {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  border: none;
  cursor: pointer;
  transition: all .3s;
  padding: 0;
}
.hd.on {
  background: var(--o5);
  width: 28px;
  border-radius: 4px;
}
.harr {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.14);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 22px;
  transition: background .2s;
  user-select: none;
}
.harr:hover { background: rgba(255,255,255,.18); }
.hl { left: 16px; }
.hr { right: 16px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 959px) {
  .sin {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 0 16px;
  }
  .svis { display: none; } /* ascundem visualul pe tabletă/mobil */
  .sl2  { min-height: clamp(360px, 55vh, 520px); }
  .stxt h1, .stxt h2 { font-size: clamp(24px, 7vw, 34px); }
}
@media (max-width: 767px) {
  .sin { padding: 0 16px; }
  .stxt h1, .stxt h2 { font-size: clamp(22px, 7.5vw, 30px); margin-bottom: 12px; }
  .stxt p { font-size: 14px; margin-bottom: 20px; }
  .hbtns { flex-direction: column; gap: 10px; }
  .hbtns .bp, .hbtns .bs { width: 100%; justify-content: center; }
  .sl2 { min-height: clamp(320px, 52vh, 480px); }
}
@media (max-width: 480px) {
  .stxt h1, .stxt h2 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .pm  { animation: none; }
  .str { transition: none; }
  .hd  { transition: none; }
}
