/* ==========================================================================
   Hamat Proof & Stats Widget Styles
   ========================================================================== */

.hamat-proof-section {
  position: relative;
  overflow: hidden;
  padding: 90px 20px;
  background-color: #f7fbff;
  background-image: linear-gradient(135deg, #f7fbff 0%, #ffffff 45%, #eef6ff 100%);
  font-family: inherit;
  color: #102033;
}

.hamat-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Background Shapes */
.hamat-bg-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(11, 31, 51, 0.06);
  filter: blur(10px);
  z-index: 1;
  pointer-events: none;
}

.shape-1 {
  width: 320px;
  height: 320px;
  top: -120px;
  right: -100px;
}

.shape-2 {
  width: 260px;
  height: 260px;
  bottom: -90px;
  left: -80px;
}

/* Stats Section */
.hamat-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 55px;
}

.hamat-stat-card {
  background-color: rgba(255, 255, 255, 0.88);
  background-image: none;
  border: 1px solid rgba(201, 162, 77, 0.18);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 18px 45px rgba(11, 31, 51, 0.06);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hamat-circle-shape {
  position: absolute;
  width: 90px;
  height: 90px;
  background: rgba(11, 31, 51, 0.05);
  border-radius: 50%;
  top: -35px;
  left: -35px;
  transition: all 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

.hamat-stat-card:hover {
  transform: translateY(-8px);
  border-color: rgba(201, 162, 77, 0.45);
  box-shadow: 0 24px 60px rgba(201, 162, 77, 0.15);
}

.hamat-stat-card:hover .hamat-circle-shape {
  transform: scale(1.2);
}

.hamat-stat-card.featured {
  background-color: #0B1F33;
  background-image: linear-gradient(145deg, #0B1F33, #15314f);
  color: #fff;
  border-color: transparent;
  transform: translateY(-10px);
}

.hamat-stat-card.featured .hamat-circle-shape {
  background: rgba(255, 255, 255, 0.16);
}

.hamat-stat-card.featured:hover {
  transform: translateY(-14px);
  box-shadow: 0 30px 65px rgba(201, 162, 77, 0.35);
}

/* Wide layout modifier */
.hamat-stat-card.wide {
  grid-column: span 1;
}

.hamat-stat-icon {
  position: relative;
  z-index: 2;
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: rgba(201, 162, 77, 0.1);
  color: #C9A24D;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  transition: all 0.3s ease;
}

.hamat-stat-card:hover .hamat-stat-icon {
  transform: scale(1.1) rotate(5deg);
}

.hamat-stat-card.featured .hamat-stat-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.hamat-stat-number {
  position: relative;
  z-index: 2;
  font-size: 38px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 12px;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.hamat-stat-card p {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: inherit;
  opacity: 0.88;
}

/* Why Box */
.hamat-why-box {
  background-color: #ffffff;
  background-image: none;
  border-radius: 34px;
  padding: 55px;
  border: 1px solid rgba(201, 162, 77, 0.18);
  box-shadow: 0 25px 70px rgba(11, 31, 51, 0.07);
  position: relative;
}

.hamat-why-box::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(201, 162, 77, 0.22);
  border-radius: 26px;
  pointer-events: none;
}

.hamat-section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 162, 77, 0.1);
  color: #C9A24D;
  padding: 9px 18px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 24px;
}

.hamat-section-label::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #C9A24D;
  border-radius: 50%;
}

.hamat-why-box h2 {
  margin: 0 0 24px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.35;
  color: #102033;
  font-weight: 900;
  max-width: 900px;
}

.hamat-why-box h2 span {
  color: #C9A24D;
}

.hamat-why-box p {
  font-size: 18px;
  line-height: 2;
  color: #435469;
  margin: 0 0 20px;
  max-width: 980px;
}

.hamat-why-box p:last-of-type {
  margin-bottom: 0;
}

.hamat-why-box strong {
  color: #102033;
}

/* Process Section */
.hamat-process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.hamat-process div {
  background-color: #f7fbff;
  background-image: linear-gradient(145deg, #f7fbff, #eef6ff);
  border: 1px solid rgba(201, 162, 77, 0.18);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hamat-process div:hover {
  transform: translateY(-5px);
  border-color: rgba(201, 162, 77, 0.35);
  box-shadow: 0 12px 30px rgba(201, 162, 77, 0.1);
}

.hamat-process span {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #C9A24D;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  flex-shrink: 0;
}

.hamat-process strong {
  font-size: 17px;
  color: #102033;
  font-weight: 700;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hamat-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hamat-stat-card.featured {
    transform: none;
  }
  
  .hamat-stat-card.featured:hover {
    transform: translateY(-4px);
  }
  
  .hamat-why-box {
    padding: 45px;
  }
}

@media (max-width: 767px) {
  .hamat-proof-section {
    padding: 60px 15px;
  }

  .hamat-stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 35px;
  }

  .hamat-stat-card {
    padding: 28px 20px;
  }

  .hamat-stat-number {
    font-size: 34px;
  }

  .hamat-why-box {
    padding: 34px 22px;
    border-radius: 24px;
  }

  .hamat-why-box::after {
    display: none;
  }

  .hamat-why-box h2 {
    font-size: 28px;
  }

  .hamat-why-box p {
    font-size: 16px;
    line-height: 1.9;
  }

  .hamat-process {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 30px;
  }
}

/* LTR Override Support */
[dir="ltr"] .hamat-circle-shape {
  left: auto;
  right: -35px;
}

[dir="ltr"] .shape-1 {
  right: auto;
  left: -100px;
}

[dir="ltr"] .shape-2 {
  left: auto;
  right: -80px;
}
