/* ============================================================
   HERO LOGO - Appears on all hero variants
   Positioned above title, aligned with Home nav item
   ============================================================ */

.hero-logo {
  display: block;
  max-width: 120px;
  height: auto;
  opacity: 0.9;
  margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
  .hero-logo {
    max-width: 140px;
    margin-bottom: var(--space-8);
  }
}

@media (min-width: 1024px) {
  .hero-logo {
    max-width: 160px;
  }
}

/* ============================================================
   HERO VARIANT 1: SPLIT PANEL
   Two-column layout with translucent accent panel
   Best for: Product pages (Safe Minds Index, Safe Minds Better Work)
   Usage: <section class="hero hero-split-accent">
   ============================================================ */

.hero-split-accent {
  background: var(--ink);
  color: var(--pure-white);
}

.hero-split-accent .container {
  display: grid;
  gap: var(--space-fluid-xl);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-split-accent .container {
    grid-template-columns: 1.4fr 1fr;
  }
}

.hero-split-accent h1,
.hero-split-accent h2,
.hero-split-accent h3,
.hero-split-accent p {
  color: var(--pure-white);
}

.hero-split-accent .hero-content {
  position: relative;
  z-index: 2;
}

.hero-split-accent .hero-content h1 {
  margin-bottom: var(--space-6);
}

.hero-split-accent .hero-content .lead {
  margin-bottom: var(--space-8);
  opacity: 0.95;
}

/* Accent panel with enhanced grid motif */
.hero-accent-panel {
  position: relative;
  background: rgba(108, 214, 221, 0.04);
  border: 1px solid rgba(108, 214, 221, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-12) var(--space-8);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Dense grid pattern inside panel */
.hero-accent-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image:
    linear-gradient(to right, var(--incheq-aqua) 1px, transparent 1px),
    linear-gradient(to bottom, var(--incheq-aqua) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Subtle glow effect */
.hero-accent-panel::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(108, 214, 221, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* Optional content inside panel */
.hero-accent-panel-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--incheq-aqua);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Mobile: Stack and reduce panel height */
@media (max-width: 1023px) {
  .hero-split-accent .container {
    grid-template-columns: 1fr;
  }

  .hero-accent-panel {
    min-height: 180px;
    padding: var(--space-8) var(--space-6);
    order: -1;
    margin-bottom: var(--space-6);
  }
}

/* ============================================================
   HERO VARIANT 2: OFFSET COLUMN
   Vertical grid column along left edge
   Best for: Content pages (Academy, Insights)
   Usage: <section class="hero hero-offset-column">
   ============================================================ */

.hero-offset-column {
  background: linear-gradient(135deg, var(--ink) 0%, var(--dark-azure) 50%, var(--ink) 100%);
  color: var(--pure-white);
  position: relative;
}

.hero-offset-column h1,
.hero-offset-column h2,
.hero-offset-column h3,
.hero-offset-column p {
  color: var(--pure-white);
}

/* The vertical column */
.hero-offset-column::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 80px;
  background: rgba(108, 214, 221, 0.06);
  border-right: 1px solid rgba(108, 214, 221, 0.12);
}

/* Grid pattern inside the column */
.hero-offset-column::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 80px;
  opacity: 0.2;
  background-image:
    linear-gradient(to right, var(--incheq-aqua) 1px, transparent 1px),
    linear-gradient(to bottom, var(--incheq-aqua) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 20px 0;
}

/* Content offset to clear the column */
.hero-offset-column .container {
  position: relative;
  z-index: 1;
  padding-left: calc(80px + var(--space-fluid-lg));
}

.hero-offset-column .hero-text {
  max-width: var(--container-lg);
}

/* Accent dots in column (optional decorative element) */
.hero-column-accent {
  position: absolute;
  top: 50%;
  left: 40px;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  z-index: 2;
}

.hero-column-accent span {
  width: 8px;
  height: 8px;
  background: var(--incheq-aqua);
  border-radius: 50%;
  opacity: 0.6;
}

.hero-column-accent span:nth-child(2) {
  opacity: 0.8;
}

.hero-column-accent span:nth-child(3) {
  opacity: 1;
}

/* Tablet: Narrower column */
@media (max-width: 1023px) {
  .hero-offset-column::before,
  .hero-offset-column::after {
    width: 60px;
  }

  .hero-offset-column .container {
    padding-left: calc(60px + var(--space-fluid-md));
  }

  .hero-column-accent {
    left: 30px;
  }
}

/* Mobile: Column becomes top bar */
@media (max-width: 639px) {
  .hero-offset-column::before {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: 6px;
    border-right: none;
    border-bottom: 1px solid rgba(108, 214, 221, 0.12);
  }

  .hero-offset-column::after {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: 6px;
    background-size: 30px 30px;
    background-position: 0 -12px;
  }

  .hero-offset-column .container {
    padding-left: var(--space-fluid-md);
    padding-top: calc(var(--section-padding-fluid-hero) + var(--space-4));
  }

  .hero-column-accent {
    display: none;
  }
}

/* ============================================================
   HERO VARIANT: REFINED GRADIENT (Homepage enhancement)
   Subtle improvements to the default hero-gradient
   Usage: <section class="hero hero-gradient-refined grid-motif">
   ============================================================ */

.hero-gradient-refined {
  background:
    radial-gradient(ellipse at top right, rgba(28, 69, 83, 0.8) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(6, 121, 132, 0.3) 0%, transparent 40%),
    linear-gradient(135deg, var(--ink) 0%, var(--dark-azure) 100%);
  color: var(--pure-white);
}

.hero-gradient-refined h1,
.hero-gradient-refined h2,
.hero-gradient-refined h3,
.hero-gradient-refined p {
  color: var(--pure-white);
}

/* Refined grid motif - full coverage */
.hero-gradient-refined.grid-motif::before {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0.08;
  background-size: 35px 35px;
  background-image:
    linear-gradient(to right, var(--incheq-aqua) 1px, transparent 1px),
    linear-gradient(to bottom, var(--incheq-aqua) 1px, transparent 1px);
}

/* Vignette for depth */
.hero-gradient-refined::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(27, 29, 38, 0.25) 100%);
  pointer-events: none;
}

.hero-gradient-refined .container {
  position: relative;
  z-index: 1;
}
