/* ============================================
   SHARED COMPONENTS
   Used across multiple page templates.
============================================ */


/* --- Section typography --- */
.section-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 1rem;
}

.section-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.body-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-light);
  font-weight: 300;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.text-link svg { transition: transform 0.2s; }
.text-link:hover svg { transform: translateX(3px); }


/* --- Breadcrumb (split: parent left, current right) --- */
.breadcrumb {
  position: absolute;
  top: 88px;
  left: 0;
  right: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247, 246, 242, 0.25);
  opacity: 0;
  animation: fadeIn 0.6s 0.2s forwards;
}

.breadcrumb a { transition: color 0.2s; }
.breadcrumb a:hover { color: rgba(247, 246, 242, 0.6); }

.breadcrumb-parent { display: flex; align-items: center; gap: 0.6rem; }
.breadcrumb-current { }


/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent);
  color: var(--dark);
  padding: 0.9rem 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s, transform 0.2s;
  font-family: var(--sans);
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-primary svg { transition: transform 0.2s; }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost-light {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 246, 242, 0.45);
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
  margin-left: 2em;
}

.btn-ghost-light::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: rgba(247, 246, 242, 0.35);
  transition: width 0.3s var(--ease-out);
}

.btn-ghost-light:hover { color: var(--white); }
.btn-ghost-light:hover::after { width: 100%; }

.btn-ghost-dark {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}

.btn-ghost-dark::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--dark);
  transition: width 0.3s var(--ease-out);
}

.btn-ghost-dark:hover { color: var(--dark); }
.btn-ghost-dark:hover::after { width: 100%; }


/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }


/* --- CTA section (shared across ~7 pages) --- */
.section-cta {
  background: var(--dark);
  padding: 8rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(74, 143, 216, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 143, 216, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
}

.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 3rem;
}

.section-cta .section-eyebrow { color: var(--accent); margin-bottom: 1rem; }

.cta-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.cta-heading em { font-style: italic; color: var(--accent); }

.cta-sub {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(247, 246, 242, 0.45);
  font-weight: 300;
  margin-bottom: 3rem;
}

.cta-actions {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  align-items: center;
}


/* --- Sticky CTA --- */
.sticky-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  background: var(--accent);
  color: var(--dark);
  padding: 0.8rem 1.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 8px 32px rgba(74, 143, 216, 0.3);
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out), background 0.2s;
  text-decoration: none;
}

.sticky-cta.visible {
  transform: translateY(0);
  opacity: 1;
}

.sticky-cta:hover { background: var(--accent-dark); color: var(--white); }


/* --- Hero canvas (signal network background) --- */
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}


/* --- Keyframes --- */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}


/* --- Page hero text (shared across dark hero pages) --- */
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 5rem 3rem 6rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: revealUp 0.7s 0.3s var(--ease-out) forwards;
}

.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 1.08;
  color: var(--white);
  letter-spacing: -0.02em;
  max-width: 820px;
  opacity: 0;
  animation: revealUp 0.9s 0.5s var(--ease-out) forwards;
}

.hero-h1 em { font-style: italic; color: var(--accent); }

.hero-sub {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(247, 246, 242, 0.5);
  max-width: 520px;
  font-weight: 300;
  margin: 1.8rem 0rem;
  opacity: 0;
  animation: revealUp 0.8s 0.7s var(--ease-out) forwards;
}


/* --- Responsive --- */
@media (max-width: 900px) {
  .breadcrumb { padding: 0 1.5rem; }

  .cta-inner { padding: 0 1.5rem; }

  .cta-actions {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  .section-cta { padding: 5rem 0; }
}