/* hero, hero section with variances */

.pd-hero {
  padding: var(--pd-space-9) var(--pd-space-5);
  background: linear-gradient(135deg, var(--pd-primary) 0%, var(--pd-primary-dark) 100%);
  color: var(--pd-white);
  border-radius: var(--pd-radius-lg);
  position: relative;
  overflow: hidden;
}

.pd-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M60 0 L0 0 0 60" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
  pointer-events: none;
}

.pd-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--pd-space-4);
  max-width: var(--pd-container-narrow);
}

.pd-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--pd-radius-pill);
  font-size: var(--pd-fs-xs);
  font-weight: var(--pd-fw-semibold);
  width: fit-content;
}

.pd-hero__badge-icon {
  width: 14px;
  height: 14px;
}

.pd-hero__heading {
  font-size: var(--pd-fs-3xl);
  font-weight: var(--pd-fw-extra);
  line-height: var(--pd-lh-tight);
  color: var(--pd-white);
  margin: 0;
  letter-spacing: var(--pd-tracking-tight);
}

@media (max-width: 640px) {
  .pd-hero__heading { font-size: var(--pd-fs-2xl); }
}

.pd-hero__description {
  font-size: var(--pd-fs-lg);
  line-height: var(--pd-lh-normal);
  color: rgba(255, 255, 255, 0.95);
  max-width: 600px;
  margin: 0;
}

.pd-hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--pd-space-2);
  margin-top: var(--pd-space-2);
}

@media (min-width: 480px) {
  .pd-hero__actions {
    flex-direction: row;
    align-items: center;
  }
}

.pd-hero__actions .pd-btn {
  flex: 0 0 auto;
}

.pd-hero__actions .pd-btn--secondary {
  background: rgba(255, 255, 255, 0.15);
  color: var(--pd-white);
  border-color: rgba(255, 255, 255, 0.3);
}
.pd-hero__actions .pd-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Variants */

/* Minimal hero (home hero, smaller) */
.pd-hero--minimal {
  padding: var(--pd-space-7) var(--pd-space-5);
}
.pd-hero--minimal .pd-hero__heading { font-size: var(--pd-fs-2xl); }
.pd-hero--minimal .pd-hero__description { font-size: var(--pd-fs-base); }

/* With background image */
.pd-hero--image {
  background: linear-gradient(135deg, rgba(11, 77, 162, 0.85) 0%, rgba(8, 59, 124, 0.85) 100%);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
@media (prefers-reduced-motion: reduce) {
  .pd-hero--image { background-attachment: scroll; }
}

/* With side graphic (right aligned content) */
.pd-hero--graphic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--pd-space-8);
}
.pd-hero--graphic .pd-hero__content {
  max-width: none;
}
.pd-hero--graphic .pd-hero__graphic {
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .pd-hero--graphic {
    grid-template-columns: 1fr;
    gap: var(--pd-space-5);
  }
}

/* Success variant (green accent) */
.pd-hero--success {
  background: linear-gradient(135deg, var(--pd-success) 0%, #1a9d6a 100%);
}

/* Warning variant */
.pd-hero--warning {
  background: linear-gradient(135deg, var(--pd-warning) 0%, #d99d00 100%);
}

/* Mobile optimization */
@media (max-width: 640px) {
  .pd-hero {
    padding: var(--pd-space-6) var(--pd-space-4);
  }

  .pd-hero__content { gap: var(--pd-space-3); }
}
