/*
 * ═══════════════════════════════════════════════════
 *  TaxiToLearn — About Page Layout (about.html)
 *  Bio, tools, contact sections.
 * ═══════════════════════════════════════════════════
 */

/* ── Bio section ─────────────────────────────────── */
.bio-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-top: var(--space-12);
}

/* Actual photo */
.bio-photo {
  width: 100%;
  aspect-ratio: 1 / 1.1;
  object-fit: cover;
  border-radius: var(--radius-xl);
  border: 1px solid var(--brand-20);
  display: block;
}

/* Bio text */
.bio-text__heading {
  font-size: clamp(var(--font-size-3xl), 4vw, var(--font-size-5xl));
  font-weight: var(--font-bold);
  color: var(--text-0);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-6);
}
.bio-text__heading span { color: var(--brand); }

.bio-text p {
  font-size: var(--font-size-md);
  color: var(--text-2);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-6);
}
.bio-text p:last-child { margin-bottom: 0; }
.bio-text strong { color: var(--text-0); font-weight: var(--font-semibold); }

/* ── Philosophy section ──────────────────────────── */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-top: var(--space-12);
}

.philosophy-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: border-color var(--ease-default);
}
.philosophy-card:hover { border-color: var(--brand-40); }

.philosophy-card__num   { font-size: var(--font-size-xs); font-weight: var(--font-bold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--brand); margin-bottom: var(--space-4); }
.philosophy-card__title { font-size: var(--font-size-md); font-weight: var(--font-semibold); color: var(--text-0); margin-bottom: var(--space-4); }
.philosophy-card p      { font-size: var(--font-size-sm); color: var(--text-3); line-height: var(--leading-relaxed); }

.decision-flow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin: var(--space-4) 0;
}
.flow-step {
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  font-weight: var(--font-semibold);
  color: var(--surface-base);
  background: var(--brand);
  padding: 0.22em 0.6em;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.flow-step--old {
  background: transparent;
  color: var(--text-3);
  border: 1px solid rgba(122,135,153,0.35);
  text-decoration: line-through;
}
.flow-arrow { color: var(--brand); font-size: var(--font-size-sm); }

.normalize-example {
  background: var(--surface-deep);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-4) 0;
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  line-height: 2;
}
.normalize-example .n-in    { color: var(--text-3); }
.normalize-example .n-arrow { color: var(--brand-40); }
.normalize-example .n-out   { color: var(--brand); }

/* ── Tools section ───────────────────────────────── */

/* Gradient separator that fades from the edges */
#tools {
  position: relative;
}
#tools::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--brand-20) 20%,
    var(--brand-20) 80%,
    transparent 100%
  );
}

.tools-categories {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  margin-top: var(--space-12);
}

.tools-category__label {
  font-size: 0.67rem;
  font-weight: var(--font-bold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--space-4);
}

.tools-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  transition:
    border-color var(--ease-default),
    background   var(--ease-default);
  cursor: default;
}

.tool-chip:hover {
  border-color: var(--brand-40);
  background: var(--surface-overlay);
}

.tool-chip__icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-chip__icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-3);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke var(--ease-default);
}

.tool-chip:hover .tool-chip__icon svg { stroke: var(--brand); }

.tool-chip__name { font-size: var(--font-size-sm); font-weight: 500; color: var(--text-1); }
.tool-chip__sub  { font-size: var(--font-size-xs); color: var(--text-3); }

/* ── Contact section ─────────────────────────────── */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-12);
}

.contact-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  text-decoration: none;
  min-width: 190px;
  transition:
    border-color var(--ease-default),
    background   var(--ease-default),
    box-shadow   var(--ease-default),
    transform    var(--ease-spring);
}

.contact-card:hover {
  border-color: var(--brand-40);
  background: var(--surface-overlay);
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.08);
  transform: translateY(-2px);
}

.contact-card__icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-3);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke var(--ease-default);
}

.contact-card:hover .contact-card__icon svg { stroke: var(--brand); }

.contact-card__label {
  display: block;
  font-size: var(--font-size-xs);
  font-weight: var(--font-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 2px;
}

.contact-card__value {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-1);
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 860px) {
  .bio-grid        { grid-template-columns: 1fr; }
  .bio-photo       { aspect-ratio: 16 / 7; max-width: 400px; }
  .philosophy-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .contact-grid { flex-direction: column; }
  .contact-card { min-width: 0; width: 100%; }
}
