/* ═══════════════════════════════════════════════════
   YAVAPAI-APACHE NATION — Component Library
   Reusable UI components — section anatomy, cards,
   pull quotes, direction grid, timeline, peoples grid,
   mark features, and the marks gallery page.
   Requires: variables.css, base.css
═══════════════════════════════════════════════════ */

/* ── SECTION ANATOMY ────────────────────────────── */

.eyebrow {
  font-family: var(--font-label);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--sacred-red);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--sacred-red);
  opacity: 0.18;
  max-width: 120px;
}

.eyebrow--turquoise { color: var(--turquoise-sky); }
.eyebrow--turquoise::after { background: var(--turquoise-sky); }

.eyebrow--gold { color: var(--sunray-gold); }
.eyebrow--gold::after { background: var(--sunray-gold); }

.eyebrow--mauve { color: var(--cloud-mauve); }
.eyebrow--mauve::after { background: var(--cloud-mauve); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.6vw, 38px);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--white-eagle);
  line-height: 1.18;
  margin-bottom: 36px;
}

.section-body {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--canyon-sand);
  line-height: 1.88;
  max-width: var(--max-body);
}

.section-body + .section-body { margin-top: 24px; }

/* ── PULL QUOTE ─────────────────────────────────── */

.pull-quote {
  border-left: 2px solid var(--sunray-gold);
  margin: 48px 0;
  padding: 20px 32px;
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(17px, 2.1vw, 21px);
  color: var(--sunray-light);
  line-height: 1.72;
  max-width: 640px;
}

.pull-quote--turquoise {
  border-left-color: var(--turquoise-sky);
  color: var(--turquoise-pale);
}

/* ── SPIRIT LINE ────────────────────────────────── */

.spirit-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--sacred-red) 20%,
    var(--sunray-gold) 50%,
    var(--turquoise-sky) 80%,
    transparent
  );
  opacity: 0.18;
}

/* ── PEOPLES GRID ───────────────────────────────── */

.peoples-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 52px;
}

.people-card {
  padding: 40px 36px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(212, 184, 150, 0.07);
  position: relative;
}

.people-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px;
  height: 32px;
}

.people-card:first-child::before { background: var(--sunray-gold); }
.people-card:last-child::before  { background: var(--turquoise-sky); }

.people-name {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--sunray-light);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.people-card:last-child .people-name { color: var(--turquoise-pale); }

.people-card h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 600;
  color: var(--white-eagle);
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}

.people-card p {
  font-family: var(--font-body);
  font-size: 16.5px;
  color: var(--canyon-sand);
  line-height: 1.82;
}

/* ── FOUR DIRECTIONS GRID ───────────────────────── */

.four-directions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 60px;
}

.direction-cell {
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}

.d-white { background: rgba(244, 234, 213, 0.03); border: 1px solid rgba(244, 234, 213, 0.08); }
.d-blue  { background: rgba(42, 110, 138, 0.06);  border: 1px solid rgba(42, 110, 138, 0.12); }
.d-gold  { background: rgba(200, 144, 10, 0.05);  border: 1px solid rgba(200, 144, 10, 0.10); }
.d-red   { background: rgba(140, 42, 28, 0.06);   border: 1px solid rgba(140, 42, 28, 0.12); }

.direction-marker {
  font-family: var(--font-label);
  font-size: 8.5px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.55;
}

.d-white .direction-marker { color: var(--parchment); }
.d-blue  .direction-marker { color: var(--turquoise-pale); }
.d-gold  .direction-marker { color: var(--sunray-light); }
.d-red   .direction-marker { color: #C04040; }

.direction-cell h4 {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 600;
  color: var(--white-eagle);
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}

.direction-cell p {
  font-family: var(--font-body);
  font-size: 15.5px;
  color: var(--canyon-sand);
  line-height: 1.78;
  opacity: 0.82;
}

/* ── TIMELINE ───────────────────────────────────── */

.timeline {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 88px;
  top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(200, 144, 10, 0.20) 15%,
    rgba(200, 144, 10, 0.20) 85%,
    transparent
  );
}

.timeline-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0 36px;
  padding: 0 0 48px 0;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-year {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--sunray-gold);
  padding-top: 4px;
  text-align: right;
  opacity: 0.72;
}

.timeline-content h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--white-eagle);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  position: relative;
}

.timeline-content h4::before {
  content: '';
  position: absolute;
  left: -44px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--sunray-gold);
  opacity: 0.55;
  box-shadow: 0 0 8px rgba(200, 144, 10, 0.4);
}

.timeline-content p {
  font-family: var(--font-body);
  font-size: 16.5px;
  color: var(--canyon-sand);
  line-height: 1.82;
  opacity: 0.84;
}

/* ── FIVE COMMUNITIES ───────────────────────────── */

.communities {
  display: flex;
  gap: 2px;
  margin-top: 52px;
  flex-wrap: wrap;
}

.community-tag {
  font-family: var(--font-label);
  font-size: 9.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--canyon-sand);
  padding: 12px 20px;
  border: 1px solid rgba(212, 184, 150, 0.10);
  background: rgba(212, 184, 150, 0.02);
  opacity: 0.70;
  transition: opacity 0.3s ease, border-color 0.3s ease;
}

.community-tag:hover {
  opacity: 1;
  border-color: rgba(200, 144, 10, 0.30);
}

/* ── CLOSING DECLARATION ────────────────────────── */

.closing-statement {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--sunray-light);
  line-height: 1.75;
  max-width: 640px;
  margin-top: 40px;
}

/* ═══════════════════════════════════════════════════
   MARK FEATURES — Inline SVG marks within sections
═══════════════════════════════════════════════════ */

/* Single mark, centered */
.mark-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 64px 0;
}

.mark-feature svg {
  width: 240px;
  height: 240px;
  display: block;
  flex-shrink: 0;
}

/* Map variant — larger render for geographic legibility */
.mark-feature--map svg {
  width: 480px;
  height: 480px;
}

.mark-label {
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 0.40em;
  text-transform: uppercase;
  color: var(--white-eagle);
  margin-top: 24px;
  opacity: 0.55;
}

.mark-rationale {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 15.5px;
  color: var(--canyon-sand);
  line-height: 1.82;
  max-width: 480px;
  margin-top: 12px;
  opacity: 0.72;
}

/* Two marks side by side */
.mark-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 64px 0;
  background: rgba(212, 184, 150, 0.05);
  border: 1px solid rgba(212, 184, 150, 0.05);
}

.mark-pair .mark-feature {
  margin: 0;
  padding: 52px 32px 48px;
  background: #060208;
}

.mark-pair .mark-feature svg {
  width: 200px;
  height: 200px;
}

/* ═══════════════════════════════════════════════════
   MARKS GALLERY — marks.html styles
═══════════════════════════════════════════════════ */

.page-header {
  text-align: center;
  padding: 120px 40px 96px;
  border-bottom: 1px solid rgba(212, 184, 150, 0.06);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 110%, rgba(200, 144, 10, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

.page-eyebrow {
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  color: var(--ember-glow);
  opacity: 0.55;
  margin-bottom: 30px;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 62px);
  font-weight: 700;
  color: var(--white-eagle);
  letter-spacing: 0.06em;
  line-height: 1.1;
  margin-bottom: 22px;
}

.page-sub {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(15px, 2vw, 19px);
  color: var(--canyon-sand);
  opacity: 0.72;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.72;
}

.header-rule {
  width: 48px;
  height: 1px;
  background: linear-gradient(to right, var(--turquoise-sky), var(--sunray-gold));
  margin: 38px auto 0;
}

/* Session header within gallery */
.session-header {
  max-width: 860px;
  margin: 0 auto;
  padding: 80px 40px 0;
}

.session-eyebrow {
  font-family: var(--font-label);
  font-size: 8.5px;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  color: var(--sacred-red);
  opacity: 0.55;
  margin-bottom: 16px;
}

.session-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.8vw, 30px);
  font-weight: 600;
  color: var(--white-eagle);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.session-intro {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 16px;
  color: var(--canyon-sand);
  line-height: 1.85;
  max-width: 600px;
  opacity: 0.78;
  margin-bottom: 48px;
}

/* Mark cells in gallery grid */
.marks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(212, 184, 150, 0.04);
  border: 1px solid rgba(212, 184, 150, 0.04);
  max-width: 980px;
  margin: 0 auto;
}

.mark-cell {
  background: var(--night-sky);
  padding: 64px 36px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.mark-num {
  font-family: var(--font-label);
  font-size: 8px;
  letter-spacing: 0.50em;
  text-transform: uppercase;
  color: var(--sacred-red);
  margin-bottom: 40px;
  opacity: 0.42;
}

.mark-cell .mark-svg-wrap {
  width: 240px;
  height: 240px;
  margin-bottom: 36px;
  flex-shrink: 0;
}

.mark-cell .mark-svg-wrap svg {
  width: 240px;
  height: 240px;
  display: block;
}

/* Gallery section wrapper — marks.html three-council structure */
.gallery-section {
  padding-bottom: 48px;
}

/* Gallery closing block */
.gallery-closing {
  text-align: center;
  padding: 80px 40px;
  border-top: 1px solid rgba(212, 184, 150, 0.06);
}

.gallery-closing-quote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(17px, 2.2vw, 22px);
  color: var(--parchment);
  line-height: 1.88;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.88;
}

.gallery-closing-tag {
  margin-top: 32px;
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ember-glow);
  opacity: 0.45;
}

/* ── RESPONSIVE ─────────────────────────────────── */

@media (max-width: 720px) {
  .peoples-grid,
  .four-directions,
  .mark-pair,
  .marks-grid { grid-template-columns: 1fr; }

  .timeline::before { left: 56px; }
  .timeline-item    { grid-template-columns: 56px 1fr; gap: 0 24px; }
  .timeline-content h4::before { left: -30px; }

  .mark-cell { padding: 52px 24px 44px; }
  .mark-cell .mark-svg-wrap,
  .mark-cell .mark-svg-wrap svg { width: 200px; height: 200px; }

  .mark-feature--map svg { width: 100%; height: auto; }

  .session-header { padding: 64px 24px 0; }
}
