/* =============================================
   ABOUT PAGE
   ============================================= */

.about-page {
  min-height: calc(100vh - var(--header-height));
  background: var(--bg-base);
  padding-bottom: var(--space-20);
}

/* ----- Layout ----- */

.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  max-width: var(--container-xl, 1320px);
  margin: 0 auto;
  padding: var(--space-10) var(--space-8) var(--space-10);
}

/* ----- Sidebar ----- */

.about-sidebar {
  display: none;
}

.about-sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border-subtle);
}

.about-sidebar-nav a {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-tertiary);
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -1px;
  transition: color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
}

.about-sidebar-nav a:hover {
  color: var(--text-primary);
}

.about-sidebar-nav a.active {
  color: var(--text-primary);
  border-left-color: var(--accent);
  font-weight: var(--weight-semibold);
}

/* ----- Mobile pill nav ----- */

.about-mobile-nav {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-4);
}

.about-mobile-nav::-webkit-scrollbar {
  display: none;
}

.about-mobile-nav a {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full, 9999px);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
}

.about-mobile-nav a:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.about-mobile-nav a.active {
  color: var(--accent-text);
  background: var(--accent-subtle);
  border-color: var(--accent);
}

/* ----- Content area ----- */

.about-content {
  min-width: 0;
}

.about-section {
  margin-bottom: var(--space-16);
  scroll-margin-top: calc(var(--header-height, 80px) + var(--space-6));
}

.about-section:last-child {
  margin-bottom: 0;
}


.about-section-heading {
  margin: 0 0 var(--space-6);
  font-size: var(--text-2xl);
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  letter-spacing: -0.03em;
  line-height: var(--leading-tight);
  color: var(--text-primary);
}

.about-section-body {
  max-width: 78ch;
}

.about-section-body p {
  margin: 0 0 var(--space-5);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}

.about-section-body p:last-child {
  margin-bottom: 0;
}

.about-catalogue-forms {
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.about-catalogue-forms li {
  margin: 0;
}

.about-catalogue-forms a {
  color: var(--accent-text);
  font-weight: var(--weight-medium);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(91, 141, 239, 0.35);
  transition: color var(--duration-fast) var(--ease-out),
    text-decoration-color var(--duration-fast) var(--ease-out);
}

.about-catalogue-forms a:hover {
  color: var(--accent-hover);
  text-decoration-color: var(--accent-hover);
}

/* ----- Signature ----- */

.about-signature {
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-subtle);
}

.about-signature p {
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--text-primary);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
  margin: 0;
}

.about-signature .about-signature-name {
  display: block;
  margin-top: var(--space-2);
  font-style: normal;
  font-weight: var(--weight-bold);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--accent-text);
}

/* ----- Buy Me a Coffee button ----- */

.bmc-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
  padding: var(--space-3) var(--space-5);
  background: #FFDD00;
  color: #000;
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.bmc-button:hover {
  opacity: 0.88;
}

.bmc-button img {
  width: 20px;
  height: 20px;
}

/* ----- Responsive ----- */

@media (min-width: 1025px) {
  .about-layout {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: var(--space-16);
  }

  .about-sidebar {
    display: block;
    position: sticky;
    top: calc(var(--header-height, 80px) + var(--space-6));
    align-self: start;
  }

  .about-mobile-nav {
    display: none;
  }
}

@media (max-width: 720px) {
  .about-layout {
    padding: var(--space-6) var(--space-5) var(--space-10);
  }

  .about-section-heading {
    font-size: var(--text-xl);
  }
}
