/* ==========================================================================
   SAFA BUILDERS — Hero Section (Homepage)
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg,
    var(--clr-primary-dark)  0%,
    var(--clr-primary)       45%,
    #1e4d8c                 70%,
    var(--clr-accent)       100%
  );
}

/* ── Background Layers ── */
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40zm0-40h2l-2 2V0zm0 4l4-4h2l-6 6V4zm0 4l8-8h2L40 10V8zm0 4L52 0h2L40 14v-2zm0 4L56 0h2L40 18v-2zm0 4L60 0h2L40 22v-2zm0 4L64 0h2L40 26v-2zm0 4L68 0h2L40 30v-2zm0 4L72 0h2L40 34v-2zm0 4L76 0h2L40 38v-2zm0 4L80 0v2L42 40h-2zm4 0L80 4v2L46 40h-2zm4 0L80 8v2L50 40h-2zm4 0L80 12v2L54 40h-2zm4 0L80 16v2L58 40h-2zm4 0L80 20v2L62 40h-2zm4 0L80 24v2L66 40h-2zm4 0L80 28v2L70 40h-2zm4 0L80 32v2L74 40h-2zm4 0L80 36v2L78 40h-2zm4 0L80 40zM56 0l24 24v2L54 2V0zm4 0l20 20v2L58 2V0zm4 0l16 16v2L62 2V0zm4 0l12 12v2L66 2V0zm4 0l8 8v2L70 2V0zm4 0l4 4v2L74 2V0zm4 0l0 0v2L78 2V0z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
}

.hero-bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 60%, rgba(200,169,110,0.14) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(255,255,255,0.04) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(27,58,107,0.5) 0%, transparent 50%);
  z-index: 0;
}

/* Floating geometric shapes */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.05;
  animation: float 8s ease-in-out infinite;
}

.hero-shape-1 {
  width: 400px;
  height: 400px;
  background: var(--clr-secondary);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.hero-shape-2 {
  width: 200px;
  height: 200px;
  background: var(--clr-white);
  bottom: 10%;
  left: 5%;
  animation-delay: 3s;
  animation-duration: 10s;
}

.hero-shape-3 {
  width: 120px;
  height: 120px;
  background: var(--clr-secondary);
  top: 30%;
  right: 30%;
  animation-delay: 6s;
  animation-duration: 12s;
  border-radius: var(--radius-2xl);
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33%       { transform: translateY(-20px) rotate(5deg); }
  66%       { transform: translateY(10px) rotate(-3deg); }
}

/* ── Hero Content ── */
.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--sp-8), 6vw, var(--sp-16));
  align-items: center;
  padding-top: var(--header-height);
  min-height: 100vh;
}

.hero-text {
  padding-block: var(--sp-12);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(200,169,110,0.15);
  border: 1px solid rgba(200,169,110,0.3);
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-secondary);
  margin-bottom: var(--sp-5);
  animation: fadeInDown 0.8s ease forwards;
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background-color: var(--clr-secondary);
  display: inline-block;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: var(--fw-extrabold);
  color: var(--clr-white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-6);
  animation: fadeInUp 0.8s ease 0.1s forwards;
  opacity: 0;
}

.hero-title .title-accent {
  color: var(--clr-secondary);
  display: block;
}

.hero-desc {
  font-size: clamp(var(--fs-base), 2vw, var(--fs-xl));
  color: rgba(255,255,255,0.8);
  line-height: var(--lh-relaxed);
  max-width: 520px;
  margin-bottom: var(--sp-8);
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-10);
  animation: fadeInUp 0.8s ease 0.3s forwards;
  opacity: 0;
}

/* ── Hero Stats Bar ── */
.hero-stats {
  display: flex;
  gap: var(--sp-8);
  padding-top: var(--sp-8);
  border-top: 1px solid rgba(255,255,255,0.1);
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

.hero-stat-item {}

.hero-stat-number {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-extrabold);
  color: var(--clr-white);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.hero-stat-number .plus {
  font-size: var(--fs-xl);
  color: var(--clr-secondary);
}

.hero-stat-label {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.6);
  font-weight: var(--fw-medium);
  margin-top: var(--sp-1);
  letter-spacing: 0.03em;
}

/* ── Hero Visual (Right Column) ── */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: var(--sp-12);
  animation: fadeInRight 0.9s ease 0.2s forwards;
  opacity: 0;
}

/* Property showcase cards (floating UI) */
.hero-cards-stack {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.hero-property-card {
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-2xl);
  padding: var(--sp-5);
  box-shadow: 0 24px 64px rgba(0,0,0,0.25);
  transition: var(--transition);
}

.hero-property-card:hover {
  transform: translateY(-4px);
}

.hero-property-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
}

.hero-property-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-property-badge {
  padding: 0.25rem 0.75rem;
  background-color: var(--clr-secondary);
  color: var(--clr-white);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
}

.hero-property-img {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-accent) 100%);
  margin-bottom: var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  overflow: hidden;
  position: relative;
}

.hero-property-img-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.06' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}

.hero-property-svg {
  position: relative;
  z-index: 1;
}

.hero-property-img > picture {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-property-img > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-property-name {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--clr-text);
  margin-bottom: var(--sp-1);
}

.hero-property-loc {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  margin-bottom: var(--sp-4);
}

.hero-property-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--clr-border-light);
}

.hero-property-price {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--clr-primary);
}

.hero-property-price span {
  font-size: var(--fs-xs);
  font-weight: var(--fw-regular);
  color: var(--clr-text-muted);
}

/* Floating mini cards */
.hero-floating-card {
  position: absolute;
  background: var(--clr-white);
  border-radius: var(--radius-xl);
  padding: var(--sp-3) var(--sp-4);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  animation: floatCard 6s ease-in-out infinite;
}

.hero-floating-card-1 {
  bottom: -20px;
  left: -30px;
  animation-delay: 0s;
}

.hero-floating-card-2 {
  top: 20px;
  right: -24px;
  animation-delay: 3s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.hero-fc-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-fc-icon-blue {
  background-color: var(--clr-primary-xlight);
}

.hero-fc-icon-gold {
  background-color: var(--clr-secondary-light);
}

.hero-fc-icon svg {
  width: 22px;
  height: 22px;
}

.hero-fc-text {}

.hero-fc-label {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
}

.hero-fc-value {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--clr-text);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  animation: fadeInUp 1s ease 0.8s forwards;
  opacity: 0;
}

.hero-scroll-text {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-scroll-mouse {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-full);
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.hero-scroll-dot {
  width: 4px;
  height: 8px;
  background-color: var(--clr-secondary);
  border-radius: var(--radius-full);
  animation: scrollDot 2s ease infinite;
}

@keyframes scrollDot {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* ── Animations ── */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
    padding-top: calc(var(--header-height) + var(--sp-8));
    padding-bottom: var(--sp-16);
  }

  .hero-text { padding-block: var(--sp-8) var(--sp-6); }
  .hero-desc { max-width: 100%; margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }

  .hero-visual { display: none; }
  .hero-scroll { display: none; }
}

@media (max-width: 575px) {
  .hero-stats {
    gap: var(--sp-6);
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }
}
