/* ================================================================
   about.css — About page styles
   Depends on: tokens.css, global.css, home.css
   ================================================================ */

/* Active nav link */
.primary-nav a[aria-current="page"] {
  color: var(--color-text);
}

/* ── Shared page-hero (also used by services — declared independently) */

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-24) var(--space-16);
  text-align: center;
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
}

.page-hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 65% 80% at 50% -20%,
    rgb(99 102 241 / 0.2) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
}

.page-hero h1 {
  font-size: clamp(var(--text-4xl), 6vw, 4.5rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.page-hero-sub {
  font-size: clamp(var(--text-base), 2vw, var(--text-lg));
  color: var(--color-muted);
  max-width: 54ch;
  text-align: center;
}

/* Visually hidden helper */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ═══════════════════════════════════════════════════════════════
   FOUNDER SECTION
═══════════════════════════════════════════════════════════════ */

.founder-section {
  padding-block: var(--space-24);
}

.founder-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

/* Photo wrap positions the ring decoration */
.founder-photo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Reserve enough room for the ring */
  padding: var(--space-4);
}

.founder-photo-circle {
  position: relative;
  z-index: 1;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background-color: var(--color-surface);
  border: 1px solid rgb(255 255 255 / 0.08);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  /* Initials text */
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-muted);
  letter-spacing: 0.05em;
  user-select: none;
}

/* Rotating dashed ring decoration */
.founder-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgb(99 102 241 / 0.2);
  animation: ring-spin 30s linear infinite;
  pointer-events: none;
}

@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Content */
.founder-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* Hide the redundant h2 on desktop — eyebrow carries the label */
.founder-content h2 {
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  letter-spacing: -0.025em;
  line-height: 1.1;
  /* Hide visually but keep for screen readers — overridden below */
  display: none;
}

.founder-content p {
  font-size: clamp(var(--text-base), 1.5vw, var(--text-lg));
  color: var(--color-muted);
  line-height: 1.8;
  max-width: 60ch;
}

@media (min-width: 768px) {
  .founder-grid {
    grid-template-columns: auto 1fr;
    gap: var(--space-16);
  }

  .founder-photo-wrap {
    /* Align photo to top of content on wider screens */
    align-self: flex-start;
    padding-top: var(--space-4);
  }

  .founder-content h2 {
    display: block;
  }

  .founder-content .eyebrow {
    display: none; /* eyebrow redundant when heading is visible */
  }
}

/* ═══════════════════════════════════════════════════════════════
   MISSION SECTION
═══════════════════════════════════════════════════════════════ */

.mission-section {
  background-color: var(--color-surface);
  border-top: 1px solid rgb(255 255 255 / 0.06);
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
  padding-block: var(--space-24);
}

.mission-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
}

/* Large open-quote SVG */
.mission-quote-mark {
  color: rgb(99 102 241 / 0.18);
  flex-shrink: 0;
}

.mission-quote {
  max-width: 100%;
}

.mission-quote p {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
  letter-spacing: -0.02em;
  max-width: none;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════
   VALUES SECTION
═══════════════════════════════════════════════════════════════ */

.values-section {
  padding-block: var(--space-24);
}

/* Eyebrow above the heading */
.values-section .section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
  margin-bottom: var(--space-12);
}

.values-section .section-header h2 {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
  letter-spacing: -0.025em;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.value-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-8);
  background-color: var(--color-surface);
  border: 1px solid rgb(255 255 255 / 0.06);
  border-radius: var(--radius-lg);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-base);
}

.value-card:hover {
  border-color: rgb(99 102 241 / 0.35);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgb(99 102 241 / 0.08);
  transform: translateY(-2px);
}

.value-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(99 102 241 / 0.08);
  border-radius: var(--radius-md);
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  /* Prevent layout jank from emoji variation */
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
}

/* Override global h3 */
.value-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}

.value-desc {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.75;
  max-width: none;
}

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ═══════════════════════════════════════════════════════════════
   LLC LEGITIMACY BLOCK
═══════════════════════════════════════════════════════════════ */

.llc-section {
  padding-block: var(--space-16);
  border-top: 1px solid rgb(255 255 255 / 0.06);
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
  background-color: var(--color-surface);
}

.llc-card {
  max-width: 520px;
  margin-inline: auto;
  padding: var(--space-8) var(--space-10);
  background-color: var(--color-bg);
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: var(--radius-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  box-shadow: var(--shadow-md);
}

.llc-icon {
  margin-bottom: var(--space-1);
  opacity: 0.9;
}

.llc-primary {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.6;
  max-width: 36ch;
  text-align: center;
}

.llc-details {
  font-size: var(--text-sm);
  color: var(--color-muted);
  max-width: none;
  text-align: center;
  letter-spacing: 0.02em;
}
