/* =========================================================
   Hero Sections CSS
   ASP.NET Core Razor Pages frontend starter

   Purpose:
   - Provide reusable hero section patterns.
   - Use for business websites, boutique hotels, cafe/chocolate websites.
   - Adapt images, colors, copy and spacing to the current brand.
========================================================= */

/* =========================================================
   1. Base Hero
========================================================= */

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding-block: clamp(5rem, 10vw, 9rem);
  background: var(--color-background, #f7f8fa);
}

.hero-container {
  width: min(var(--container-lg, 1120px), calc(100% - 2rem));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.hero-content {
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: var(--space-4, 1rem);
  font-size: var(--text-xs, 0.75rem);
  font-weight: var(--weight-bold, 700);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary, #1f3a5f);
}

.hero-eyebrow::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.hero-title {
  margin: 0;
  font-family: var(--font-heading, inherit);
  font-size: clamp(2.75rem, 7vw, 5.75rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  color: var(--color-text, #1f2933);
}

.hero-title span {
  color: var(--color-primary, #1f3a5f);
}

.hero-description {
  max-width: 620px;
  margin-top: var(--space-5, 1.5rem);
  margin-bottom: 0;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: var(--line-relaxed, 1.75);
  color: var(--color-text-muted, #667085);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3, 0.75rem);
  margin-top: var(--space-6, 2rem);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5, 1.5rem);
  margin-top: var(--space-7, 3rem);
}

.hero-meta-item {
  min-width: 120px;
}

.hero-meta-value {
  display: block;
  font-size: var(--text-xl, 1.5rem);
  font-weight: var(--weight-bold, 700);
  line-height: 1;
  color: var(--color-text, #1f2933);
}

.hero-meta-label {
  display: block;
  margin-top: var(--space-2, 0.5rem);
  font-size: var(--text-sm, 0.875rem);
  color: var(--color-text-muted, #667085);
}

/* =========================================================
   2. Hero Media
========================================================= */

.hero-media {
  position: relative;
}

.hero-image-frame {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border-radius: var(--radius-2xl, 2rem);
  background: var(--color-surface, #ffffff);
  box-shadow: var(--shadow-lg, 0 22px 45px rgba(16, 24, 40, 0.14));
}

.hero-image-frame img,
.hero-image-frame video {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.hero-image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

.hero-floating-card {
  position: absolute;
  left: -2rem;
  bottom: 2rem;
  max-width: 260px;
  padding: var(--space-4, 1rem);
  /* Flat near-opaque background instead of backdrop-filter blur. */
  background: color-mix(
    in srgb,
    var(--color-surface, #ffffff) 97%,
    transparent
  );
  border: 1px solid
    color-mix(in srgb, var(--color-border, #e4e7ec) 80%, transparent);
  border-radius: var(--radius-xl, 1.5rem);
  box-shadow: var(--shadow-md, 0 12px 28px rgba(16, 24, 40, 0.1));
  z-index: 3;
}

.hero-floating-title {
  margin: 0 0 var(--space-1, 0.25rem);
  font-size: var(--text-sm, 0.875rem);
  font-weight: var(--weight-bold, 700);
  color: var(--color-text, #1f2933);
}

.hero-floating-text {
  margin: 0;
  font-size: var(--text-sm, 0.875rem);
  line-height: 1.55;
  color: var(--color-text-muted, #667085);
}

/* =========================================================
   3. Centered Hero
========================================================= */

.hero-centered {
  min-height: 76vh;
  text-align: center;
  background:
    radial-gradient(
      circle at top left,
      color-mix(in srgb, var(--color-primary, #1f3a5f) 12%, transparent),
      transparent 36%
    ),
    radial-gradient(
      circle at bottom right,
      color-mix(in srgb, var(--color-accent, #c9a227) 14%, transparent),
      transparent 34%
    ),
    var(--color-background, #f7f8fa);
}

.hero-centered .hero-content {
  max-width: 860px;
  margin-inline: auto;
}

.hero-centered .hero-eyebrow {
  justify-content: center;
}

.hero-centered .hero-eyebrow::before,
.hero-centered .hero-eyebrow::after {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.hero-centered .hero-actions {
  justify-content: center;
}

.hero-centered .hero-description {
  margin-inline: auto;
}

/* =========================================================
   4. Background Image Hero
========================================================= */

.hero-bg-image {
  min-height: 86vh;
  color: var(--color-text-light, #ffffff);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-bg-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.22)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.36));
  z-index: 1;
}

.hero-bg-image .hero-content {
  position: relative;
  z-index: 2;
}

.hero-bg-image .hero-eyebrow,
.hero-bg-image .hero-title,
.hero-bg-image .hero-description {
  color: var(--color-text-light, #ffffff);
}

.hero-bg-image .hero-description {
  opacity: 0.9;
}

.hero-bg-image .hero-title span {
  color: var(--color-accent, #c9a227);
}

/* =========================================================
   5. Boutique Hotel Hero
========================================================= */

.hero-boutique {
  background:
    radial-gradient(
      circle at 12% 20%,
      rgba(85, 107, 47, 0.12),
      transparent 26%
    ),
    radial-gradient(
      circle at 88% 82%,
      rgba(199, 154, 91, 0.16),
      transparent 30%
    ),
    var(--color-background, #f8f5ef);
}

.hero-boutique .hero-image-frame {
  border-radius: 2.25rem;
}

.hero-boutique .hero-title {
  color: var(--color-text, #25251f);
}

.hero-boutique .hero-title span {
  color: var(--color-primary, #556b2f);
}

.hero-boutique .hero-floating-card {
  border-color: rgba(85, 107, 47, 0.14);
}

/* =========================================================
   6. Cafe / Chocolate Hero
========================================================= */

.hero-cafe {
  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(214, 168, 90, 0.22),
      transparent 28%
    ),
    radial-gradient(circle at 90% 90%, rgba(75, 46, 30, 0.14), transparent 34%),
    var(--color-background, #f7efe7);
}

.hero-cafe .hero-title span {
  color: var(--color-accent, #d6a85a);
}

.hero-cafe .hero-image-frame {
  border-radius: 2rem;
}

.hero-cafe .hero-floating-card {
  border-color: rgba(75, 46, 30, 0.12);
}

/* =========================================================
   7. Business Hero
========================================================= */

.hero-business {
  background: linear-gradient(
    135deg,
    var(--color-background, #f7f8fa) 0%,
    var(--color-surface, #ffffff) 100%
  );
}

.hero-business .hero-title span {
  color: var(--color-primary, #1f3a5f);
}

/* =========================================================
   8. Hero Decorative Shapes
========================================================= */

.hero-shape {
  position: absolute;
  border-radius: var(--radius-full, 999px);
  pointer-events: none;
  z-index: 1;
}

.hero-shape-one {
  width: 18rem;
  height: 18rem;
  right: -7rem;
  top: 8%;
  background: color-mix(
    in srgb,
    var(--color-primary, #1f3a5f) 12%,
    transparent
  );
  filter: blur(4px);
}

.hero-shape-two {
  width: 12rem;
  height: 12rem;
  left: -5rem;
  bottom: 10%;
  background: color-mix(in srgb, var(--color-accent, #c9a227) 14%, transparent);
  filter: blur(4px);
}

/* =========================================================
   9. Hero Video
========================================================= */

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.2)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.42));
  z-index: 1;
}

.hero-video-content {
  position: relative;
  z-index: 2;
}

/* =========================================================
   10. Responsive
========================================================= */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    max-width: 760px;
  }

  .hero-media {
    max-width: 760px;
  }

  .hero-floating-card {
    left: 1rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding-block: clamp(4rem, 14vw, 6rem);
  }

  .hero-title {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  .hero-description {
    font-size: var(--text-base, 1rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .hero-actions .btn-custom,
  .hero-actions a {
    width: 100%;
    justify-content: center;
  }

  .hero-meta {
    gap: var(--space-4, 1rem);
  }

  .hero-meta-item {
    min-width: calc(50% - 1rem);
  }

  .hero-image-frame {
    min-height: 360px;
    border-radius: var(--radius-xl, 1.5rem);
  }

  .hero-image-frame img,
  .hero-image-frame video {
    min-height: 360px;
  }

  .hero-floating-card {
    position: relative;
    left: auto;
    bottom: auto;
    margin-top: var(--space-4, 1rem);
    max-width: none;
  }

  .hero-bg-image::before {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.62),
      rgba(0, 0, 0, 0.44)
    );
  }
}

@media (max-width: 480px) {
  .hero-container {
    width: min(100% - 1.25rem, var(--container-lg, 1120px));
  }

  .hero-eyebrow {
    font-size: 0.7rem;
  }

  .hero-eyebrow::before {
    width: 1.5rem;
  }

  .hero-meta {
    flex-direction: column;
  }

  .hero-meta-item {
    min-width: 100%;
  }
}

/* =========================================================
   11. Reduced Motion
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .hero-section *,
  .hero-section *::before,
  .hero-section *::after {
    animation: none !important;
    transition: none !important;
  }
}
