/*
 * about.css — Shared About Section Styles
 * Dashmier Technologies
 * Bugs fixed: undefined vars, broken responsive, centering, table 4th col, h1 size
 */

/* ── Keyframes needed for about pages ──────────────────────────── */
@keyframes pulse-dot {
  0%,100% { transform: scale(1); opacity: .6; }
  50%      { transform: scale(1.4); opacity: 1; }
}

/* ── Page hero ──────────────────────────────────────────────────── */
.pg-hero {
  position: relative;
  padding: calc(var(--nav-h) + 68px) 0 72px;
  overflow: hidden;
}

/* eyebrow line */
.pg-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.pg-hero__eyebrow-line {
  width: 32px;
  height: 1px;
  background: var(--border); /* fixed: was --border-dark (undefined) */
}

/* hero h1 — reduced from 4.5rem max to 3.5rem to avoid oversized */
.pg-hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  max-width: 780px;
  margin-bottom: 22px;
}
.pg-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pg-hero__lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.82;
  max-width: 560px;
}

/* ── Breadcrumb ─────────────────────────────────────────────────── */
.about-bc {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 26px;
}
.about-bc a      { color: var(--text-muted); transition: color var(--t-fast); }
.about-bc a:hover { color: var(--blue); }
.about-bc i      { font-size: 0.6rem; color: var(--text-faint); }

/* ── Section divider ────────────────────────────────────────────── */
.divider-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 48px;
}
.divider-label__text {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}
.divider-label__line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Pull quote ─────────────────────────────────────────────────── */
.big-quote {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  font-weight: 700;
  color: var(--text-head);
  line-height: 1.38;
  letter-spacing: -0.03em;
  padding-left: 24px;
  border-left: 3px solid var(--blue);
  max-width: 680px;
}

/* ── Stat chips ─────────────────────────────────────────────────── */
.stat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.stat-chip {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 18px;
  text-align: center;
  min-width: 95px;
  flex: 1;
}
.stat-chip__num {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-head);
  letter-spacing: -0.04em;
  line-height: 1;
  display: block;
}
.stat-chip__lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
  display: block;
  line-height: 1.35;
}

/* ── Value cards ────────────────────────────────────────────────── */
.value-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.value-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px 24px;
  transition: box-shadow var(--t-base), transform var(--t-base), border-color var(--t-base);
  position: relative;
  overflow: hidden;
}
.value-card:hover {
  box-shadow: var(--shadow-card-h);
  transform: translateY(-4px);
  border-color: var(--blue-mid);
}
.value-card__num {
  font-family: var(--font-head);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--blue);
  opacity: 0.07;
  line-height: 1;
  position: absolute;
  top: 14px;
  right: 18px;
  letter-spacing: -0.06em;
  transition: opacity var(--t-base);
  user-select: none;
}
.value-card:hover .value-card__num { opacity: 0.13; }
.value-card__icon {
  width: 46px;
  height: 46px;
  border-radius: var(--r-lg);
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-base);
}
.value-card:hover .value-card__icon {
  background: var(--blue);
  color: #fff;
  transform: rotate(-5deg) scale(1.08);
}
.value-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-head);
  margin-bottom: 9px;
  letter-spacing: -0.02em;
}
.value-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.72;
  margin: 0;
}

/* ── Person card ────────────────────────────────────────────────── */
.person-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.person-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: box-shadow var(--t-base), transform var(--t-base);
}
.person-card:hover {
  box-shadow: var(--shadow-card-h); /* fixed: was --shadow-lg (undefined) */
  transform: translateY(-5px);
}
.person-card__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.person-card__avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}
.person-card__body { padding: 20px 22px; }
.person-card__name {
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-head);
  margin-bottom: 3px;
  letter-spacing: -0.02em;
}
.person-card__role {
  font-size: 0.8rem;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 11px;
}
.person-card__bio {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}
.person-card__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 13px;
}
.person-card__skill {
  padding: 3px 9px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
}
.person-card__socials { display: flex; gap: 7px; }
.person-card__social {
  width: 30px;
  height: 30px;
  border-radius: var(--r-md);
  background: var(--off-white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.84rem;
  color: var(--text-muted);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.person-card__social:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* ── Why card ───────────────────────────────────────────────────── */
.why-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.why-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  transition: box-shadow var(--t-base), border-color var(--t-base), transform var(--t-base);
}
.why-card:hover {
  box-shadow: var(--shadow-card-h);
  border-color: var(--blue-mid);
  transform: translateY(-3px);
}
.why-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-lg);
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-base);
}
.why-card:hover .why-card__icon {
  background: var(--blue);
  color: #fff;
  transform: scale(1.08) rotate(-4deg);
}
.why-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-head);
  margin-bottom: 7px;
  letter-spacing: -0.02em;
}
.why-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.72;
  margin: 0;
}

/* ── Comparison table (4 columns) ───────────────────────────────── */
.compare-wrap { overflow-x: auto; border-radius: var(--r-xl); box-shadow: var(--shadow-md); }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
.compare-table th {
  padding: 15px 18px;
  text-align: left;
  font-family: var(--font-head);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: var(--text-head);
}
.compare-table td {
  padding: 13px 18px;
  font-size: 0.875rem;
  border-top: 1px solid var(--border);
  vertical-align: middle;
}
/* 4-column headers */
.compare-table thead th:nth-child(1) { color: rgba(255,255,255,.45); }
.compare-table thead th:nth-child(2) { color: #94A3B8; }
.compare-table thead th:nth-child(3) { color: #64748B; }
.compare-table thead th:nth-child(4) { color: #38BDF8; background: #1D4ED8; }
/* body rows */
.compare-table tbody tr                    { background: var(--white); }
.compare-table tbody tr:nth-child(even)    { background: var(--off-white); }
.compare-table tbody tr:hover              { background: var(--blue-light); }
.compare-table td:nth-child(1) { font-weight: 600; color: var(--text-head); }
.compare-table td:nth-child(2) { color: var(--text-muted); font-size: 0.84rem; }
.compare-table td:nth-child(3) { color: var(--text-muted); font-size: 0.84rem; }
/* fixed: 4th column styling was missing */
.compare-table td:nth-child(4) {
  color: var(--blue-dark);
  font-weight: 600;
  background: var(--blue-light);
  font-size: 0.84rem;
}

/* ── Timeline ───────────────────────────────────────────────────── */
.tl-track {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}
.tl-track::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
  transform: translateX(-50%);
}
.tl-item {
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  gap: 0;
  align-items: start;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.tl-item--visible { opacity: 1; transform: translateY(0); }
.tl-left  { padding-right: 28px; text-align: right; }
.tl-right { padding-left:  28px; }
.tl-mid   {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 8px;
  position: relative;
  z-index: 2;
}
.tl-dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  box-shadow: 0 0 0 5px #fff, 0 0 0 7px transparent;
  transition: transform var(--t-base);
  flex-shrink: 0;
}
.tl-dot:hover { transform: scale(1.1); }
.tl-year {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.tl-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-head);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.tl-body {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.72;
  margin: 0;
}

/* ── CTA band ───────────────────────────────────────────────────── */
.about-cta {
  background: var(--text-head);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.about-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(37,99,235,.12) 0%, transparent 65%);
  pointer-events: none;
}
.about-cta__inner {
  position: relative;
  z-index: 2;
  max-width: 580px;
  margin: 0 auto;
}
/* fixed: section-label is inline-flex, can't margin:auto → use wrapper text-align:center */
.about-cta .section-label {
  display: inline-flex; /* stays inline-flex, parent is text-align:center so it centres */
}
.about-cta h2 {
  color: #fff;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 14px;
}
.about-cta p {
  color: #94A3B8;
  font-size: 1rem;
  line-height: 1.78;
  margin-bottom: 28px;
}
.about-cta__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Story two-col layout ───────────────────────────────────────── */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.story-sticky {
  position: sticky;
  top: calc(var(--nav-h) + 28px);
}

/* ── Offices grid ───────────────────────────────────────────────── */
.offices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* ── Vision panels ──────────────────────────────────────────────── */
.vision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* ── Gap contrast grid ──────────────────────────────────────────── */
.gap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* ── Founder card grid ──────────────────────────────────────────── */
.founder-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: 44px;
  box-shadow: var(--shadow-md);
  margin-bottom: 60px;
}

/* ── Team wider grid ────────────────────────────────────────────── */
.team-wider-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* ── Why reasons grid ───────────────────────────────────────────── */
.promises-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .founder-grid { grid-template-columns: 240px 1fr; gap: 40px; padding: 32px; }
  .vision-grid  { grid-template-columns: 1fr; }
  .promises-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .story-grid      { grid-template-columns: 1fr; gap: 48px; }
  .story-sticky    { position: static; }
  .offices-grid    { grid-template-columns: 1fr; gap: 40px; }
  .gap-grid        { grid-template-columns: 1fr; }
  .person-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .team-wider-grid { grid-template-columns: 1fr; gap: 40px; }

  /* ── Timeline mobile fix ──────────────────────────────────── */
  .tl-track::before {
    left: 20px;      /* line stays on left, not center */
    transform: none;
  }
  .tl-item {
    /* collapse to 2-col: dot | content */
    grid-template-columns: 44px 1fr !important;
    grid-template-rows: auto;
  }
  /* hide empty left panel on ALL rows */
  .tl-item .tl-left  { display: none !important; }
  /* reset even-row reordering so content always shows on right */
  .tl-item .tl-mid   { order: 1 !important; padding-top: 14px; }
  .tl-item .tl-right { order: 2 !important; padding-left: 16px !important; padding-right: 0 !important; text-align: left !important; }
}

@media (max-width: 768px) {
  .pg-hero { padding-top: calc(var(--nav-h) + 48px); }
  .pg-hero h1 { font-size: clamp(1.875rem, 7vw, 2.75rem); }
  .value-cards-grid  { grid-template-columns: 1fr; }
  .person-cards-grid { grid-template-columns: 1fr; }
  .why-cards-grid    { grid-template-columns: 1fr; }
  .founder-grid      { grid-template-columns: 1fr; }
  .promises-grid     { grid-template-columns: 1fr; }
  .compare-table th, .compare-table td { padding: 11px 13px; font-size: 0.78rem; }
  .about-cta { padding: 56px 0; }
}

@media (max-width: 480px) {
  .stat-chips { gap: 8px; }
  .stat-chip  { min-width: 80px; padding: 11px 12px; }
  .why-card   { flex-direction: column; gap: 12px; }
}
