/* ============================================================
   GINGERBREAD AESTHETIC — about.css
   Styles specific to about.html.
   Requires foundation.css, style.css and book.css first.
   ============================================================ */


/* ============================================================
   INTRO SECTION — photo + opening story
   ============================================================ */

.about-intro-inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-20);
  align-items: start;
}

/* Photo column */
.about-intro-image {
  position: relative;
}

/* Offset gold border behind the photo */
.about-intro-image::after {
  content: '';
  position: absolute;
  top: var(--space-6);
  left: calc(var(--space-6) * -1);
  right: var(--space-6);
  bottom: calc(var(--space-6) * -1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  z-index: 0;
}

.about-intro-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;  /* keeps face in frame */
  border-radius: var(--radius-md);
  display: block;
}

/* Text column */
.about-intro-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding-top: var(--space-4);
}

.about-intro-content h2 {
  margin-top: var(--space-2);
  font-size: var(--text-2xl);
}

.about-intro-content p {
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
  max-width: 100%;
}

/* Pull quote */
.about-quote {
  margin: var(--space-2) 0;
  padding: var(--space-5) var(--space-6);
  border-left: 3px solid var(--gold);
  background-color: var(--champagne);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;

  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--text-md);
  font-weight: 400;
  color: var(--espresso);
  line-height: var(--leading-snug);
}


/* ============================================================
   TIMELINE
   ============================================================ */

.timeline {
  position: relative;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Vertical connecting line */
.timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 15px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--color-border) 10%,
    var(--color-border) 90%,
    transparent
  );
}

.timeline-item {
  display: flex;
  gap: var(--space-8);
  padding-bottom: var(--space-10);
  position: relative;
}

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

/* The dot on the timeline */
.timeline-marker {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--champagne);
  border: 1px solid var(--color-border);
  position: relative;
  z-index: 1;
  margin-top: 2px;
}

/* Current — gold filled dot */
.timeline-marker-current {
  background-color: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.15);
}

.timeline-content {
  flex: 1;
  padding-top: var(--space-1);
}

.timeline-date {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-2);
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-heading);
  color: var(--espresso);
  margin-bottom: var(--space-3);
}

.timeline-desc {
  font-size: var(--text-sm);
  color: var(--text-mid);
  line-height: var(--leading-normal);
  max-width: 560px;
}


/* ============================================================
   QUALIFICATIONS
   ============================================================ */

.quals-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-16);
  align-items: start;
}

.quals-header {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-8));
}

.quals-header p {
  margin-top: var(--space-5);
  color: var(--text-mid);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  max-width: 100%;
}

.quals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

/* Individual qualification card */
.qual-item {
  padding: var(--space-6);
  background-color: var(--off-white);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Featured — the lead qualification gets the full width */
.qual-item-featured {
  grid-column: 1 / -1;
  background-color: var(--champagne);
  border-color: var(--color-border);
  border-left: 3px solid var(--gold);
}

.qual-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--gold-dark);
  background-color: rgba(201, 168, 76, 0.15);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-xl);
  align-self: flex-start;
}

.qual-item-featured .qual-badge {
  background-color: var(--gold);
  color: var(--espresso);
}

.qual-title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--weight-heading);
  color: var(--espresso);
  line-height: var(--leading-snug);
}

.qual-item-featured .qual-title {
  font-size: var(--text-lg);
}

.qual-body {
  font-size: var(--text-sm);
  color: var(--text-mid);
  line-height: var(--leading-normal);
  max-width: 100%;
}

/* Placeholder card — shown until Natalia provides full quals list */
.qual-item-placeholder {
  background-color: transparent;
  border: 1px dashed var(--color-border);
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.qual-placeholder-text {
  font-size: var(--text-sm);
  color: var(--text-light);
  text-align: center;
  font-style: italic;
  max-width: 100%;
}


/* ============================================================
   VALUES
   ============================================================ */

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}

.value-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.value-icon {
  width: 48px;
  height: 48px;
  color: var(--gold);
}

.value-icon svg {
  width: 100%;
  height: 100%;
}

.value-title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--weight-heading);
  color: var(--espresso);
}

.value-desc {
  font-size: var(--text-sm);
  color: var(--text-mid);
  line-height: var(--leading-normal);
  max-width: 100%;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {

  /* Intro: stack photo above text */
  .about-intro-inner {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .about-intro-image {
    max-width: 420px;
  }

  /* Quals: unstick the header */
  .quals-inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .quals-header {
    position: static;
  }

  /* Values: 2 columns */
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 640px) {

  /* Timeline: tighter on mobile */
  .timeline-item {
    gap: var(--space-5);
  }

  /* Quals: single column */
  .quals-grid {
    grid-template-columns: 1fr;
  }

  .qual-item-featured {
    grid-column: 1;
  }

  /* Values: single column */
  .values-grid {
    grid-template-columns: 1fr;
  }

  /* Intro offset border: hide on mobile */
  .about-intro-image::after {
    display: none;
  }

}
