/* ============================================================
   Astea Solutions — fellowship.css
   Page-specific styles for fellowship.html.
   Depends on base.css and sections.css variables.
   ============================================================ */

/* ---- Hero: split — solid black text zone left, illustration right --
   Layer 1: hard black on the left, fading to transparent so illustration
            bleeds through on the right half.
   Layer 2: SVG illustration at a contained size (55% width), pinned right.
   Base color: black so the text area is always solid. */
.fellowship-hero {
  background-color: var(--color-black);
  background-image:
    linear-gradient(to right, var(--color-black) 45%, rgba(0, 0, 0, 0.55) 45%),
    url("/assets/images/fellowship-header-may.svg");
  background-size:
    100% 100%,
    55% auto;
  background-position:
    0 0,
    right center;
  background-repeat: no-repeat;
  min-height: 475px;
}

@media (max-width: 900px) {
  /* Below 900px the illustration overlaps text — drop it, keep solid black */
  .fellowship-hero {
    background-image: none;
    min-height: 340px;
  }
}

/* ---- Intro copy ------------------------------------------- */
.fellowship-intro {
  max-width: 68ch;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.fellowship-intro p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-text);
  max-width: none;
}

.fellowship-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.fellowship-bullets li {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  padding-left: 1.25rem;
  position: relative;
}

.fellowship-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

/* ---- How and when + What we offer: stacked layout ------------- */
.fellowship-info-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  max-width: 42rem;
}

/* ---- Timeline graphic ----------------------------------------- */
.fellowship-section--timeline {
  padding-block: var(--space-lg) 0;
}

.fellowship-timeline {
  position: relative;
  margin: 0;
  width: 100%;
}

.fellowship-timeline__picture,
.fellowship-timeline__picture img {
  display: block;
  width: 100%;
  height: auto;
}

.fellowship-timeline__header {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  z-index: 1;
  padding-top: clamp(0.75rem, 3vw, 2rem);
  pointer-events: none;
}

.fellowship-timeline__header .container {
  pointer-events: auto;
}

.fellowship-timeline__header .section-header {
  margin-bottom: 0;
}

.fellowship-info-block h2 {
  margin-bottom: var(--space-md);
}

.fellowship-info-block h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

/* ---- Timeline list (dates) -------------------------------- */
.fellowship-timeline-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--color-border);
}

.fellowship-timeline-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-sm);
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9375rem;
  flex-wrap: wrap;
}

.fellowship-timeline-list__label {
  color: var(--color-text);
  font-weight: 500;
}

.fellowship-timeline-list__date {
  color: var(--color-text);
  font-size: 0.875rem;
  white-space: nowrap;
}

/* ---- Offer list ------------------------------------------- */
.fellowship-offer-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fellowship-offer-list li {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  padding-left: 1.5rem;
  position: relative;
}

.fellowship-offer-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

/* ---- Process steps ---------------------------------------- */
.process-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.process-step {
  background-color: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  z-index: 1;
  position: relative;
  overflow: hidden;
}

.process-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--color-accent);
}

.process-step__number {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}

.process-step__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-black);
}

.process-step__desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text);
  max-width: none;
  flex: 1;
}

/* ---- Position cards --------------------------------------- */
.position-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.position-card {
  background-color: var(--color-mid);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color var(--transition-base);
}

.position-card:hover,
.position-card:focus-visible {
  border-color: var(--color-accent);
}

.position-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.position-card__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-black);
  background-color: var(--color-accent);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-sm);
  align-self: flex-start;
}

.position-card h3 {
  color: var(--color-white);
  font-size: 1.25rem;
}

.position-card p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text-light);
  max-width: none;
  flex: 1;
}

.position-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  min-height: 44px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: none;
  transition: gap var(--transition-fast);
}

.position-card__link::after {
  content: '→';
  font-size: 1rem;
  line-height: 1;
  transition: transform var(--transition-fast);
}

.position-card:hover .position-card__link,
.position-card:focus-visible .position-card__link {
  gap: 0.75rem;
}

.position-card:hover .position-card__link::after,
.position-card:focus-visible .position-card__link::after {
  transform: translateX(4px);
}

/* ---- Why fellowship: video embed -------------------------- */
.fellowship-video {
  margin-bottom: var(--space-md);
  max-width: 56rem;
}

.fellowship-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 20px;
}

/* ---- Why fellowship: intro copy --------------------------- */
.fellowship-why {
  margin-bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.fellowship-why p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-text);
  max-width: none;
}

/* ---- Tech list -------------------------------------------- */
.tech-list-block {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-md);
  margin-bottom: 0;
}

/* Tighter vertical rhythm on lower fellowship sections */
section[aria-labelledby="voices-heading"] {
  padding-top: var(--space-md);
}

section[aria-labelledby="life-at-astea-heading"] {
  padding-top: var(--space-md);
}

.tech-list-block__label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.tech-list-groups {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.tech-list-group {
  --marker-color: var(--color-green);
  position: relative;
  padding: var(--space-sm) var(--space-sm) var(--space-sm)
    calc(var(--space-md) + 0.75rem);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-green);
  border-radius: var(--radius-md);
}

.tech-list-group--marker-dark {
  --marker-color: var(--color-black);
}

.tech-list-group::before {
  content: '';
  position: absolute;
  left: var(--space-sm);
  top: 50%;
  transform: translateY(-50%);
  flex-shrink: 0;
}

/* Brand geometric bullets — green or black only per shape guidelines */
.tech-list-group--circle::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--marker-color);
}

.tech-list-group--square::before {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background-color: var(--marker-color);
}

.tech-list-group--triangle::before {
  width: 0;
  height: 0;
  background: transparent;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 9px solid var(--marker-color);
}

.tech-list-group--hexagon::before {
  width: 10px;
  height: 10px;
  background-color: var(--marker-color);
  border-radius: 2px;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

.tech-list-group--pointer::before {
  width: 0;
  height: 0;
  background: transparent;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 9px solid var(--marker-color);
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tech-list li {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-black);
  background-color: var(--color-accent);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.75rem;
  white-space: nowrap;
}

/* ---- Quote grid ------------------------------------------- */
.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.quote-card {
  background-color: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  display: flex;
  position: relative;
  z-index: 1;
  flex-direction: column;
  gap: var(--space-md);
  transition: border-color var(--transition-base);
}

.quote-card:hover {
  border-color: var(--color-accent);
}

.quote-card blockquote {
  flex: 1;
}

.quote-card blockquote p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-black);
  max-width: none;
  font-style: italic;
}

.quote-card blockquote p::before {
  content: '\201C';
  color: var(--color-accent);
  font-style: normal;
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 0;
  vertical-align: -0.35em;
  margin-right: 0.125rem;
}

.quote-card blockquote p::after {
  content: '\201D';
  color: var(--color-accent);
  font-style: normal;
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 0;
  vertical-align: -0.35em;
  margin-left: 0.125rem;
}

.quote-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-sm);
}

.quote-card figcaption strong {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-black);
}

.quote-card figcaption span {
  font-size: 0.8125rem;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* ---- Rabbit mascot (Zayo): peek from right screen edge ---- */
.fellowship-section--rabbit {
  position: relative;
  overflow: hidden;
}

/* Rabbit sits at the top-right of the section, aligned with the heading.
   Negative right value makes it partially bleed off-screen for the peek effect. */
.fellowship-rabbit {
  position: absolute;
  right: -75px;
  top: var(--space-xl); /* matches .section padding-top → aligns with heading */
  width: 300px;
  height: auto;
  pointer-events: none;
  z-index: 0;
}

/* Text body stays in-flow but leaves room for the rabbit on the right */
.fellowship-rabbit-body {
  max-width: calc(100% - 240px);
  position: relative;
  z-index: 1;
}

/* ---- Life at Astea + Want freedom: two-column grid -------- */
.life-freedom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl) var(--space-lg);
  align-items: start;
}

.life-freedom-block h2 {
  margin-bottom: var(--space-md);
}

/* ---- Responsive adjustments ------------------------------ */
@media (max-width: 992px) {
  .process-steps {
    grid-template-columns: 1fr;
  }

  .position-cards {
    grid-template-columns: 1fr;
  }

  .quote-grid {
    grid-template-columns: 1fr 1fr;
  }

  .fellowship-info-stack {
    gap: var(--space-lg);
  }

  .life-freedom-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .fellowship-rabbit {
    width: 240px;
    right: -60px;
  }

  .fellowship-rabbit-body {
    max-width: calc(100% - 195px);
  }
}

@media (max-width: 767px) {
  /* Mobile timeline PNG has no top headroom — stack heading above the graphic */
  .fellowship-timeline__header {
    position: static;
    width: auto;
    padding-top: 0;
    pointer-events: auto;
    margin-bottom: var(--space-md);
  }
}

@media (max-width: 768px) {
  .quote-grid {
    grid-template-columns: 1fr;
  }

  .fellowship-rabbit {
    width: 120px;
    right: -30px;
  }

  /* Let text use full width on mobile — rabbit is small enough to not obstruct */
  .fellowship-rabbit-body {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .fellowship-timeline-list li {
    flex-direction: column;
    gap: 0.25rem;
  }

  .fellowship-info-stack {
    gap: var(--space-md);
  }

  .tech-list li {
    font-size: 0.8125rem;
  }

  .fellowship-rabbit {
    width: 90px;
    right: -20px;
  }
}
