/**
 * UCFER elite public site layer — 2026
 * Monochrome-first tokens; responsive navigation; trust and engagement surfaces.
 */

:root {
  --ucfer-black: #0a0a0a;
  --ucfer-paper: #fafafa;
  --ucfer-muted: #5c5c5c;
  --ucfer-line: rgba(10, 10, 10, 0.12);
  --ucfer-accent: #1e3a8a;
  --ucfer-accent-hover: #1e40af;
  --ucfer-vermilion: #e4002b;
  --ucfer-radius-lg: 12px;
  --ucfer-radius-md: 8px;
  --ucfer-shadow-soft: 0 12px 40px rgba(10, 10, 10, 0.08);
  --ucfer-header-height: 88px;
  --ucfer-font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

:root[color-mode="dark"] {
  --ucfer-paper: #111111;
  --ucfer-black: #f5f5f5;
  --ucfer-muted: #b0b0b0;
  --ucfer-line: rgba(255, 255, 255, 0.14);
  --ucfer-shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.35);
}

body {
  font-family: var(--ucfer-font);
}

/* ——— Mobile navigation ——— */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ucfer-line);
  border-radius: var(--ucfer-radius-md);
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease;
}

.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-container {
    flex-wrap: wrap;
    align-items: center;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    order: 10;
    margin: 0;
    padding: 12px 0 8px;
    border-top: 1px solid var(--ucfer-line);
    gap: 0.25rem;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    display: block;
    padding: 12px 4px;
    font-size: 1rem;
    min-height: 44px;
  }

  .nav-actions {
    margin-left: auto;
    gap: 0.35rem;
  }

  .header .nav-logo img,
  .header .ucfer-logo-image {
    height: 72px !important;
  }

  .hero-with-video {
    min-height: clamp(420px, 72vh, 640px);
  }

  .hero-title-edgy,
  .hero-title {
    font-size: clamp(1.75rem, 6vw, 2.35rem) !important;
    line-height: 1.15;
  }

  .hero-buttons-enhanced {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .hero-button-modern {
    width: 100%;
    text-align: center;
    min-height: 48px;
  }
}

@media (min-width: 769px) {
  .nav-menu {
    display: flex !important;
  }
}

body.nav-open {
  overflow: hidden;
}

/* ——— Trust strip ——— */
.trust-strip {
  background: var(--ucfer-black);
  color: var(--ucfer-paper);
  padding: 0.65rem 0;
  font-size: 0.875rem;
}

.trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.trust-strip-label {
  opacity: 0.85;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
}

.trust-strip-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}

.trust-strip-links a {
  color: var(--ucfer-paper);
  text-decoration: none;
  font-weight: 500;
}

.trust-strip-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

:root[color-mode="dark"] .trust-strip {
  background: #000;
}

/* ——— Elite hero refinements ——— */
.hero-eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.92;
}

.hero-org-name {
  display: block;
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  font-weight: 500;
  margin-top: 0.5rem;
  opacity: 0.9;
}

/* ——— Trust pillars (replaces unverified stats) ——— */
.trust-pillars {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--ucfer-paper);
}

.trust-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.trust-pillar-card {
  border: 1px solid var(--ucfer-line);
  border-radius: var(--ucfer-radius-lg);
  padding: 1.5rem;
  background: #fff;
  transition: box-shadow 200ms ease, border-color 200ms ease;
}

:root[color-mode="dark"] .trust-pillar-card {
  background: #1a1a1a;
}

.trust-pillar-card:hover {
  box-shadow: var(--ucfer-shadow-soft);
  border-color: rgba(30, 58, 138, 0.25);
}

.trust-pillar-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.trust-pillar-card p {
  margin: 0;
  color: var(--ucfer-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.trust-pillar-card a {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
}

/* ——— Engagement process ——— */
.process-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  counter-reset: step;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.process-step {
  position: relative;
  padding: 1.25rem 1rem 1rem 1.25rem;
  border-left: 3px solid var(--ucfer-accent);
  background: rgba(30, 58, 138, 0.04);
  border-radius: 0 var(--ucfer-radius-md) var(--ucfer-radius-md) 0;
  min-height: 100%;
}

:root[color-mode="dark"] .process-step {
  background: rgba(59, 130, 246, 0.08);
}

.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ucfer-accent);
  margin-bottom: 0.35rem;
}

.process-step strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.process-step span {
  display: block;
  font-size: 0.875rem;
  color: var(--ucfer-muted);
  line-height: 1.45;
}

.process-note {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--ucfer-muted);
}

/* ——— Footer elite ——— */
.footer-elite-meta {
  font-size: 0.8125rem;
  color: var(--ucfer-muted);
  margin-top: 0.75rem;
  line-height: 1.5;
}

.footer-trust-link {
  font-weight: 600;
}

/* ——— Streamlit section — toned for production ——— */
.streamlit-feature-link[href*="localhost"] {
  pointer-events: none;
  opacity: 0.55;
}

.streamlit-portal-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--ucfer-muted);
  text-align: center;
}

.streamlit-cta-container {
  text-align: center;
  margin-top: 2rem;
}

body.has-trust-strip section[style*="padding-top: 140px"],
body.has-trust-strip .services-wrapper {
  scroll-margin-top: 180px;
}

@media (max-width: 768px) {
  body.has-trust-strip section[style*="padding-top: 140px"] {
    padding-top: 150px !important;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) {
  body.has-trust-strip section[style*="padding-top: 140px"] {
    padding-top: 168px !important;
  }
}

.contact-grid {
  gap: clamp(1rem, 3vw, 2.5rem);
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle-bar,
  .nav-toggle-bar::before,
  .nav-toggle-bar::after,
  .trust-pillar-card {
    transition: none !important;
  }
}
