/* ─── brand.css — EleviaWell Wordmark & Brand Components ─── */

/* ─── Wordmark ─────────────────────────────────────────── */

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--text-primary);
  line-height: 1;
}

/* Geometric precision mark: a diamond/rhombus with a central crosshair */
.wordmark-symbol {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}

.wordmark-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.wordmark-text em {
  font-style: italic;
  color: var(--brand-primary);
}

/* ─── Advertorial Tag ───────────────────────────────────── */

.advertorial-tag {
  display: block;
  width: 100%;
  text-align: center;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-4);
  background-color: var(--surface-brand);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

/* ─── Navigation — Hidden Until Hover ──────────────────── */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  transform: translateY(-100%);
  transition: transform var(--duration-slow) var(--ease-out);
  will-change: transform;
}

.site-nav.is-visible,
.site-nav:focus-within {
  transform: translateY(0);
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-8);
  background-color: var(--surface-inverse);
  border-bottom: 1px solid var(--border-medium);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  gap: var(--space-8);
}

/* Hover trigger zone — invisible strip at top of viewport */
.nav-trigger {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  z-index: calc(var(--z-nav) + 1);
  cursor: default;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--duration-fast) ease;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--brand-primary);
  transition: width var(--duration-base) var(--ease-out);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Nav CTA button */
.nav-cta {
  flex-shrink: 0;
}

/* Mobile nav trigger */
.nav-mobile-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-medium);
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: border-color var(--duration-fast) ease,
              color var(--duration-fast) ease;
}

.nav-mobile-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

/* ─── Ruled Line Divider ────────────────────────────────── */

.ruled-line {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: 0;
}

.ruled-line::before,
.ruled-line::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--border-subtle);
}

.ruled-line-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ─── Section Label / Eyebrow ───────────────────────────── */

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: var(--space-4);
}

.section-label::before {
  content: '— ';
  opacity: 0.5;
}

/* ─── Stat Display ──────────────────────────────────────── */

.stat-display {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.stat-display-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.9;
  color: var(--brand-primary);
  font-weight: 400;
}

.stat-display-label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.4;
  max-width: 160px;
}

/* ─── Typographic Backdrop Numeral ──────────────────────── */

.backdrop-numeral {
  position: absolute;
  font-family: var(--font-display);
  font-size: 28vw;
  font-weight: 400;
  line-height: 0.8;
  color: var(--text-primary);
  opacity: 0.045;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  letter-spacing: -0.05em;
}

/* ─── Inline SVG Logo Mark ──────────────────────────────── */
/*
  The EleviaWell mark: a precision diamond with internal crosshair lines.
  Sharp geometry — Innovator archetype.
  Rendered as inline SVG in HTML, styled here.
*/

.logo-mark-svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.logo-mark-svg .mark-diamond {
  fill: none;
  stroke: var(--brand-primary);
  stroke-width: 1.5;
}

.logo-mark-svg .mark-crosshair {
  stroke: var(--brand-primary);
  stroke-width: 1;
  opacity: 0.6;
}

.logo-mark-svg .mark-dot {
  fill: var(--brand-primary);
}

/* ─── Image Treatment — High-contrast duotone ───────────── */

.img-treated {
  filter: contrast(1.1) brightness(0.9) saturate(0.85);
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
  display: block;
}

.img-frame {
  overflow: hidden;
  position: relative;
  background-color: var(--surface-raised);
}

.img-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(91, 173, 222, 0.08) 0%,
    transparent 60%
  );
  pointer-events: none;
  mix-blend-mode: screen;
}

/* ─── Responsive Nav ─────────────────────────────────────── */

@media (max-width: 768px) {
  .site-nav {
    /* Always visible on mobile — no hover mechanic on touch */
    transform: translateY(0);
    position: sticky;
  }

  .site-nav-inner {
    flex-wrap: wrap;
    padding: var(--space-3) var(--space-4);
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    border-top: 1px solid var(--border-subtle);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-mobile-btn {
    display: block;
  }

  .nav-cta {
    display: none;
  }
}
