/* ============================================================
   HAMATE HERO WIDGET — CSS
   يعكس تصميم index.html بدقة مع كل الأنيميشنات
   ============================================================ */

/* ── Keyframe Animations ── */
@keyframes hmhero-scanDown {
  0%   { transform: translateY(-35%); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(22%); opacity: 0; }
}

@keyframes hmhero-wavePulse {
  0%, 100% { opacity: .35; transform: translateX(50%) scale(.96); }
  50%       { opacity: 1;   transform: translateX(50%) scale(1.04); }
}

@keyframes hmhero-injectionPulse {
  0%, 100% { transform: translateX(50%) scale(.85); opacity: .75; }
  50%       { transform: translateX(50%) scale(1.12); opacity: 1; }
}

@keyframes hmhero-fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Section Wrapper ── */
.hmhero-wrap {
  min-height: var(--hmhero-min-h, 820px);
  display: flex;
  align-items: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg,
      rgba(11,31,51, var(--hmhero-overlay, .92)),
      rgba(11,31,51, calc(var(--hmhero-overlay, .92) - .14))),
    var(--hmhero-bg) center / cover no-repeat;
}

/* Grid pattern overlay */
.hmhero-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 58px 58px;
  opacity: .55;
  pointer-events: none;
}

/* Radial glow overlay */
.hmhero-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 35%, rgba(201,162,77,.16), transparent 35%);
  pointer-events: none;
}

/* ── Grid Layout ── */
.hmhero-grid {
  position: relative;
  z-index: 3;
  width: min(1200px, calc(100% - 32px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 54px;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 60px;
}

/* ── COPY (Right column) ── */
.hmhero-copy {
  animation: hmhero-fadeUp .7s ease both;
}

.hmhero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #C9A24D;
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 18px;
}
.hmhero-kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: #C9A24D;
  flex-shrink: 0;
}

.hmhero-heading {
  font-size: 52px;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -.8px;
  margin-bottom: 22px;
  color: #fff;
}

.hmhero-highlight {
  color: #C9A24D;
}

.hmhero-desc {
  font-size: 18px;
  line-height: 1.9;
  color: rgba(255,255,255,.78);
  max-width: 660px;
  margin-bottom: 30px;
}

/* ── Buttons ── */
.hmhero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hmhero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 900;
  border: 1px solid transparent;
  transition: .25s ease;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.hmhero-btn-gold {
  background: linear-gradient(135deg, #C9A24D, #E5C677);
  color: #0B1F33;
  box-shadow: 0 18px 35px rgba(201,162,77,.24);
}
.hmhero-btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 55px rgba(201,162,77,.34);
  color: #0B1F33;
}

.hmhero-btn-outline {
  color: #C9A24D;
  border-color: #C9A24D;
  background: rgba(11,31,51,.18);
}
.hmhero-btn-outline:hover {
  background: #C9A24D;
  color: #0B1F33;
  transform: translateY(-3px);
}

/* ── Proof Badges ── */
.hmhero-proofs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 680px;
}

.hmhero-proof {
  padding: 16px;
  border-radius: 14px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
  display: flex;
  gap: 12px;
  align-items: center;
}

.hmhero-proof-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(201,162,77,.12);
  color: #C9A24D;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}

.hmhero-proof strong {
  display: block;
  font-size: 14px;
  color: #fff;
  margin-bottom: 3px;
}

.hmhero-proof small {
  color: rgba(255,255,255,.62);
  font-size: 12px;
  line-height: 1.5;
}

/* ── Diagnostic Card ── */
.hmhero-card {
  border: 1px solid rgba(201,162,77,.45);
  border-radius: 20px;
  background: rgba(7,23,39,.72);
  backdrop-filter: blur(18px);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(11,31,51,.22);
  animation: hmhero-fadeUp .7s .2s ease both;
}

.hmhero-card-top {
  height: 270px;
  position: relative;
  background-size: cover;
  background-position: center;
}

.hmhero-card-label {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(11,31,51,.86);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  z-index: 2;
}

.hmhero-gpr-label {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 7px 12px;
  border-radius: 8px;
  background: #C9A24D;
  color: #0B1F33;
  font-weight: 900;
  font-size: 12px;
  z-index: 2;
}

/* ── Status Panel ── */
.hmhero-status-panel {
  position: absolute;
  left: 16px;
  bottom: -82px;
  width: 190px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(11,31,51,.92);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 20px 45px rgba(0,0,0,.24);
  z-index: 4;
}

.hmhero-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.09);
  color: rgba(255,255,255,.72);
  font-size: 13px;
  font-weight: 700;
}

.hmhero-status-row b {
  color: #28C76F;
}

/* ── Gauge Circle ── */
.hmhero-gauge {
  width: 82px;
  height: 82px;
  margin: 10px auto 0;
  border-radius: 50%;
  background:
    conic-gradient(
      #C9A24D 0 calc(var(--hmhero-gauge, 82) * 1%),
      rgba(255,255,255,.12) calc(var(--hmhero-gauge, 82) * 1%) 100%
    );
  display: grid;
  place-items: center;
  position: relative;
}

.hmhero-gauge::before {
  content: "";
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #071727;
}

.hmhero-gauge span {
  position: relative;
  z-index: 2;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
}

/* ── Soil Layers ── */
.hmhero-soil {
  height: 255px;
  position: relative;
  overflow: hidden;
  background: #0a1927;
  border-top: 1px solid rgba(255,255,255,.08);
}

.hmhero-soil-layer {
  position: absolute;
  right: 0;
  left: 0;
  height: 33.333%;
}

.hmhero-sl-1 {
  top: 0;
  background:
    radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,162,77,.22), rgba(201,162,77,.07));
  background-size: 24px 24px, auto;
}

.hmhero-sl-2 {
  top: 33.333%;
  background:
    radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(114,86,48,.34), rgba(114,86,48,.10));
  background-size: 26px 26px, auto;
}

.hmhero-sl-3 {
  top: 66.666%;
  background:
    radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38,55,71,.46), rgba(38,55,71,.16));
  background-size: 22px 22px, auto;
}

/* ── Scan Beam ── */
.hmhero-scan-beam {
  position: absolute;
  top: -20%;
  right: 50%;
  width: 3px;
  height: 120%;
  background: linear-gradient(to bottom, transparent, #4fb7ff, transparent);
  box-shadow: 0 0 22px rgba(79,183,255,.75);
  animation: hmhero-scanDown 3.2s ease-in-out infinite;
  z-index: 5;
}

/* ── Scan Waves ── */
.hmhero-scan-waves {
  position: absolute;
  right: calc(50% - 95px);
  top: 58px;
  width: 190px;
  height: 150px;
  z-index: 4;
  opacity: .85;
}

.hmhero-scan-waves span {
  position: absolute;
  right: 50%;
  transform: translateX(50%);
  border: 2px solid rgba(79,183,255,.45);
  border-top: 0;
  border-radius: 0 0 100px 100px;
  animation: hmhero-wavePulse 2s ease-in-out infinite;
}

.hmhero-scan-waves span:nth-child(1) { width: 45px;  height: 26px; top: 10px; }
.hmhero-scan-waves span:nth-child(2) { width: 75px;  height: 46px; top: 30px; animation-delay: .2s; }
.hmhero-scan-waves span:nth-child(3) { width: 110px; height: 68px; top: 55px; animation-delay: .4s; }

/* ── Injection Pipes ── */
.hmhero-pipe {
  position: absolute;
  bottom: 35px;
  width: 5px;
  background: linear-gradient(to bottom, #d6d6d6, #7b8791);
  border-radius: 999px;
  z-index: 6;
}

.hmhero-pipe::after {
  content: "";
  position: absolute;
  bottom: -8px;
  right: 50%;
  transform: translateX(50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #C9A24D;
  box-shadow: 0 0 0 8px rgba(201,162,77,.13), 0 0 28px rgba(201,162,77,.9);
  animation: hmhero-injectionPulse 1.8s infinite ease-in-out;
}

.hmhero-pipe-1 { left: 172px; height: 152px; }
.hmhero-pipe-2 { left: 232px; height: 185px; }

/* ── Responsive ── */
@media (max-width: 991px) {
  .hmhero-grid {
    grid-template-columns: 1fr;
    padding-top: 120px;
    gap: 40px;
  }

  .hmhero-heading {
    font-size: 38px;
  }

  .hmhero-proofs {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  .hmhero-heading {
    font-size: 28px;
  }

  .hmhero-proofs {
    grid-template-columns: 1fr;
  }

  .hmhero-btn {
    width: 100%;
    justify-content: center;
  }

  .hmhero-actions {
    flex-direction: column;
  }
}
