/**
 * Shalom Hospital Theme — Hero Sections
 * FILE: hero.css
 */

/* ============================================================
   HERO BASE
============================================================ */
.sh-hero {
  position: relative;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--sh-gradient-hero);
}

/* When hero has background image */
.sh-hero.has-image {
  background-color: var(--sh-dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ============================================================
   HERO OVERLAYS & DECORATIONS
============================================================ */

.sh-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 15, 30, 0.88) 0%,
    rgba(15, 118, 110, 0.45) 60%,
    rgba(20, 184, 166, 0.15) 100%
  );
  z-index: 0;
}

.sh-hero__bg-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Subtle dot pattern */
.sh-hero__bg-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Large radial glow */
.sh-hero__bg-pattern::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.15) 0%, transparent 65%);
  border-radius: 50%;
}

/* Decorative circles */
.sh-hero__decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.sh-hero__decor-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.sh-hero__decor-circle:nth-child(1) {
  width: 500px;
  height: 500px;
  top: -200px;
  right: -100px;
  border-color: rgba(20, 184, 166, 0.12);
  animation: sh-floatSlow 12s ease-in-out infinite;
}

.sh-hero__decor-circle:nth-child(2) {
  width: 300px;
  height: 300px;
  bottom: -80px;
  left: -60px;
  border-color: rgba(255, 255, 255, 0.05);
  animation: sh-floatSlow 9s ease-in-out infinite reverse;
}

/* ============================================================
   HERO CONTAINER & GRID
============================================================ */

.sh-hero__container {
  position: relative;
  z-index: 2;
  padding-top: 6rem;
  padding-bottom: 6rem;
  width: 100%;
}

.sh-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .sh-hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }
}

/* ============================================================
   HERO CONTENT (left column)
============================================================ */

.sh-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.sh-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--sh-white);
  border-radius: var(--sh-radius-full);
  padding: 0.375rem 1rem;
  font-size: var(--sh-text-xs);
  font-weight: var(--sh-font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--sh-tracking-wider);
  margin-bottom: 1.25rem;
  animation: sh-slideRight 0.7s var(--sh-ease-out) both;
}

.sh-hero__badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--sh-accent);
  border-radius: 50%;
  animation: sh-pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

.sh-hero__title {
  font-family: var(--sh-font-heading);
  font-weight: 800;
  font-size: clamp(2.25rem, 5vw, 4rem);
  color: var(--sh-white);
  line-height: 1.13;
  margin-bottom: 1.25rem;
  animation: sh-fadeUp 0.8s var(--sh-ease-out) 0.15s both;
}

.sh-hero__title em {
  color: var(--sh-accent);
  font-style: normal;
}

.sh-hero__title .sh-hero__title-line {
  display: block;
}

/* Gradient word highlight */
.sh-hero__title .sh-gradient-word {
  background: linear-gradient(135deg, var(--sh-accent) 0%, #fde68a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sh-hero__subtitle {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: var(--sh-leading-relaxed);
  margin-bottom: 2.25rem;
  max-width: 540px;
  animation: sh-fadeUp 0.8s var(--sh-ease-out) 0.3s both;
}

.sh-hero__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  animation: sh-fadeUp 0.8s var(--sh-ease-out) 0.45s both;
}

/* Hero trust indicators */
.sh-hero__trust {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  flex-wrap: wrap;
  animation: sh-fadeIn 1s ease 0.8s both;
}

.sh-hero__trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
}

.sh-hero__trust-number {
  font-family: var(--sh-font-heading);
  font-weight: var(--sh-font-extrabold);
  font-size: 1.5rem;
  color: var(--sh-white);
  line-height: 1;
}

.sh-hero__trust-label {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.sh-hero__trust-separator {
  width: 1px;
  height: 2.5rem;
  background-color: rgba(255, 255, 255, 0.15);
}

/* ============================================================
   HERO IMAGE (right column)
============================================================ */

.sh-hero__image {
  position: relative;
  animation: sh-fadeIn 1s ease 0.4s both;
  display: none;
}

@media (min-width: 768px) {
  .sh-hero__image {
    display: block;
  }
}

.sh-hero__img-wrap {
  position: relative;
  border-radius: var(--sh-radius-2xl);
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5);
}

.sh-hero__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--sh-radius-2xl);
  display: block;
}

/* Image gradient overlay */
.sh-hero__img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(to top, rgba(10, 15, 30, 0.6) 0%, transparent 100%);
  border-radius: 0 0 var(--sh-radius-2xl) var(--sh-radius-2xl);
}

/* Decorative blob behind image */
.sh-hero__img-blob {
  position: absolute;
  inset: -2.5rem;
  background: var(--sh-gradient-primary);
  border-radius: 60% 40% 55% 45% / 50% 55% 45% 50%;
  z-index: -1;
  opacity: 0.25;
  animation: sh-morphBlob 10s ease-in-out infinite;
  filter: blur(0);
}

/* ============================================================
   FLOATING STATS CARDS
============================================================ */

.sh-hero__floating-cards {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.sh-floating-card {
  position: absolute;
  background-color: var(--sh-white);
  border-radius: 20px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.25);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  pointer-events: auto;
  min-width: 160px;
}

.sh-floating-card--1 {
  top: 8%;
  right: -2rem;
  animation: sh-float 5s ease-in-out infinite;
  animation-delay: 0s;
}

.sh-floating-card--2 {
  bottom: 22%;
  left: -2.5rem;
  animation: sh-float 6s ease-in-out infinite;
  animation-delay: 1s;
}

.sh-floating-card--3 {
  bottom: 4%;
  right: 5%;
  animation: sh-float 4.5s ease-in-out infinite;
  animation-delay: 0.5s;
}

.sh-floating-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--sh-radius-md);
  background: var(--sh-gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sh-white);
  flex-shrink: 0;
}

.sh-floating-card__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.sh-floating-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.sh-floating-card__number {
  font-family: var(--sh-font-heading);
  font-weight: var(--sh-font-extrabold);
  font-size: 1.375rem;
  color: var(--sh-text);
  line-height: 1;
}

.sh-floating-card__label {
  font-size: var(--sh-text-xs);
  color: var(--sh-muted);
  font-weight: var(--sh-font-medium);
  white-space: nowrap;
}

/* ============================================================
   SCROLL HINT
============================================================ */

.sh-hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: sh-fadeIn 1s ease 1.2s both;
}

.sh-hero__scroll-hint span {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: var(--sh-font-medium);
}

.sh-hero__scroll-arrow {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  animation: sh-bounce 1.8s ease-in-out infinite;
}

.sh-hero__scroll-arrow svg {
  width: 0.875rem;
  height: 0.875rem;
}

/* ============================================================
   INNER PAGE HERO (.sh-page-hero)
============================================================ */

.sh-page-hero {
  position: relative;
  background: var(--sh-gradient-hero);
  overflow: hidden;
  padding: 8rem 0 5rem;
}

.sh-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}

.sh-page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--sh-bg) 0%, transparent 100%);
}

.sh-page-hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.sh-page-hero__breadcrumb {
  margin-bottom: 1.25rem;
  justify-content: center;
}

.sh-page-hero__title {
  font-family: var(--sh-font-heading);
  font-weight: var(--sh-font-extrabold);
  font-size: clamp(2rem, 4vw, 3.25rem);
  color: var(--sh-white);
  line-height: var(--sh-leading-tight);
  margin-bottom: 1rem;
}

.sh-page-hero__subtitle {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--sh-text-lg);
  max-width: 560px;
  margin: 0 auto;
  line-height: var(--sh-leading-relaxed);
}

/* With background image */
.sh-page-hero.has-image {
  background-size: cover;
  background-position: center;
}

.sh-page-hero.has-image::before {
  background: linear-gradient(135deg, rgba(10, 15, 30, 0.82) 0%, rgba(15, 118, 110, 0.4) 100%);
}

/* ============================================================
   ORTHOPEDIC / LANDING PAGE HERO
============================================================ */

.sh-hero--lp {
  background: linear-gradient(135deg, #050a14 0%, #0a3d35 40%, #0F766E 100%);
  min-height: 100vh;
  align-items: center;
}

.sh-hero--lp .sh-hero__title {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  line-height: 1.08;
}

.sh-hero--lp .sh-hero__grid {
  align-items: stretch;
}

@media (min-width: 1024px) {
  .sh-hero--lp .sh-hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

/* Lead gen form column in LP hero */
.sh-hero__form-col {
  display: flex;
  align-items: center;
}

.sh-hero__form-card {
  background-color: var(--sh-white);
  border-radius: var(--sh-radius-xl);
  padding: 2.25rem;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.45);
  width: 100%;
  animation: sh-bounceIn 0.7s var(--sh-ease-bounce) 0.5s both;
}

.sh-hero__form-card .sh-form__title {
  font-family: var(--sh-font-heading);
  font-weight: var(--sh-font-bold);
  font-size: var(--sh-text-2xl);
  color: var(--sh-text);
  margin-bottom: 0.375rem;
  line-height: var(--sh-leading-snug);
}

.sh-hero__form-card .sh-form__subtitle {
  font-size: var(--sh-text-sm);
  color: var(--sh-muted);
  margin-bottom: 1.5rem;
}

/* Urgency text above form */
.sh-hero__urgency {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--sh-radius-full);
  padding: 0.375rem 0.875rem;
  font-size: var(--sh-text-xs);
  font-weight: var(--sh-font-semibold);
  color: #dc2626;
  margin-bottom: 1.25rem;
}

.sh-hero__urgency-dot {
  width: 6px;
  height: 6px;
  background-color: #dc2626;
  border-radius: 50%;
  animation: sh-pulse 1.2s ease-in-out infinite;
  flex-shrink: 0;
}

/* ============================================================
   HERO WITH VIDEO BACKGROUND
============================================================ */

.sh-hero--video {
  background-color: var(--sh-dark);
}

.sh-hero__video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.sh-hero__video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

/* ============================================================
   RESPONSIVE HERO ADJUSTMENTS
============================================================ */

@media (max-width: 767px) {
  .sh-hero {
    min-height: 100vh;
    padding-top: var(--sh-header-height-mobile);
  }

  .sh-hero__container {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .sh-hero__title {
    font-size: clamp(1.875rem, 8vw, 2.5rem);
  }

  .sh-hero__subtitle {
    font-size: 1rem;
    margin-bottom: 1.75rem;
  }

  .sh-hero__trust {
    gap: 1rem;
  }

  .sh-hero__trust-separator {
    display: none;
  }

  .sh-hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .sh-hero__actions .sh-btn {
    justify-content: center;
  }

  .sh-floating-card {
    display: none;
  }

  .sh-page-hero {
    padding: 6rem 0 4rem;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .sh-hero__actions {
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .sh-hero__container {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .sh-floating-card--2 {
    left: -1rem;
  }

  .sh-floating-card--1 {
    right: -0.5rem;
  }
}

@media (min-width: 1280px) {
  .sh-hero__img {
    aspect-ratio: 3 / 4;
  }

  .sh-floating-card--1 {
    right: -3rem;
  }

  .sh-floating-card--2 {
    left: -3.5rem;
  }
}
