/**
 * PhonoLogic About Page Styles
 * REQUIRES: variables.css (with Literate Warmth palette tokens)
 *
 * Layout: Hero → Sand (Mission) → White (Beliefs) → Navy (Team) → White (Serve/How) → Sand (Milestones + CTA)
 * Palette: Navy #354B5E, Teal #5B8F8A, Brand #dc9435, Sand #E5D6C5
 */

/* ==========================================================================
   Base
   ========================================================================== */
html {
  overflow-y: scroll;
}
@media (min-width: 769px) {
  html { scrollbar-gutter: stable; }
}
.ab-body {
  margin: 0;
  font-family: var(--font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  background: #ffffff;
  overflow-x: hidden;
  color: var(--color-text, #1f2937);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.ab-hero {
  background: linear-gradient(180deg, #FDF5E9 0%, #fff7f2 40%, #F0E6D8 100%);
  padding: 0;
  position: relative;
  overflow: hidden;
}
.ab-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 24px 72px;
  text-align: center;
}
.ab-hero h1 {
  font-size: var(--font-size-display, 48px);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 16px;
  color: var(--color-navy, #354B5E);
  letter-spacing: -0.02em;
}
.ab-hero h1 span {
  color: var(--color-brand, #dc9435);
}
.ab-hero-sub {
  font-size: var(--font-size-lg, 18px);
  color: var(--color-text-muted, #6b7280);
  line-height: 1.65;
  margin: 0 auto;
  max-width: 600px;
}

/* ==========================================================================
   Section Dividers — SVG Waves (reusing homepage pattern)
   ========================================================================== */
.ab-divider {
  width: 100%;
  line-height: 0;
  overflow: hidden;
  margin-top: -1px;
  margin-bottom: -1px;
  position: relative;
  z-index: 1;
}
.ab-divider svg {
  width: 100%;
  height: auto;
  display: block;
}
/* hero → sand */
.ab-divider-hero-to-sand { background: #F0E6D8; }
.ab-divider-hero-to-sand svg { fill: #E5D6C5; stroke: #E5D6C5; stroke-width: 1; }
/* sand → white */
.ab-divider-sand-to-white { background: #E5D6C5; }
.ab-divider-sand-to-white svg { fill: #ffffff; stroke: #ffffff; stroke-width: 1; }
/* white → navy */
.ab-divider-to-navy { background: #ffffff; }
.ab-divider-to-navy svg { fill: var(--color-navy, #354B5E); stroke: var(--color-navy, #354B5E); stroke-width: 1; }
/* navy → white */
.ab-divider-from-navy { background: #2C3E50; }
.ab-divider-from-navy svg { fill: #ffffff; stroke: #ffffff; stroke-width: 1; }
/* white → sand */
.ab-divider-to-sand { background: #ffffff; }
.ab-divider-to-sand svg { fill: #E5D6C5; stroke: #E5D6C5; stroke-width: 1; }

/* ==========================================================================
   Section Containers
   ========================================================================== */
.ab-section {
  padding: 72px 24px;
  max-width: 900px;
  margin: 0 auto;
}
.ab-section h2 {
  font-size: var(--font-size-heading, 36px);
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--color-navy, #354B5E);
  letter-spacing: -0.02em;
}
.ab-section-centered h2 {
  text-align: center;
}
.ab-section-sub {
  font-size: var(--font-size-md, 16px);
  color: var(--color-text-muted, #6b7280);
  margin: 0 0 40px;
  max-width: 640px;
  line-height: 1.65;
}
.ab-section-centered .ab-section-sub {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.ab-section p {
  font-size: 16px;
  color: var(--color-text, #1f2937);
  line-height: 1.7;
  margin: 0 0 16px;
}
.ab-section p:last-child { margin-bottom: 0; }

/* Section backgrounds */
.ab-bg-sand { background: #E5D6C5; }
.ab-bg-navy {
  background: var(--gradient-section-navy, linear-gradient(180deg, #354B5E 0%, #2C3E50 100%));
  color: #fff;
}
.ab-bg-navy h2 { color: #fff; }
.ab-bg-navy .ab-section-sub { color: rgba(255,255,255,0.7); }
.ab-bg-navy p { color: rgba(255,255,255,0.85); }

/* ==========================================================================
   Tagline
   ========================================================================== */
.ab-tagline {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-brand, #dc9435);
  text-align: center;
  margin: 0 0 32px;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   Mission — Two-column with accent
   ========================================================================== */
.ab-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 32px;
}
.ab-mission-card {
  position: relative;
  padding-left: 20px;
}
.ab-mission-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 4px;
  height: 40px;
  border-radius: 2px;
  background: var(--color-brand, #dc9435);
}
.ab-mission-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-navy, #354B5E);
  margin: 0 0 8px;
}
.ab-mission-card p {
  font-size: 15px;
  color: var(--color-text-muted, #6b7280);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   Beliefs — Visual list
   ========================================================================== */
.ab-beliefs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}
.ab-belief-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  background: var(--color-bg-cream, #fff7f2);
  border: 1px solid var(--color-sand-dark, #E2D4C2);
  border-radius: 12px;
}
.ab-belief-marker {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  background: var(--color-teal, #5B8F8A);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.ab-belief-marker svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ab-belief-text {
  font-size: 15px;
  color: var(--color-text, #1f2937);
  line-height: 1.55;
  margin: 0;
  font-weight: 500;
}

/* ==========================================================================
   Team Cards
   ========================================================================== */
.ab-team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.ab-team-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
}
.ab-team-initials {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-brand, #dc9435);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  margin: 0 auto 16px;
}
.ab-team-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}
.ab-team-role {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-brand, #dc9435);
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ab-team-bio {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   Who We Serve + How We Do It — Side by side
   ========================================================================== */
.ab-serve-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.ab-serve-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  font-size: 16px;
  color: var(--color-text, #1f2937);
  line-height: 1.6;
  border-bottom: 1px solid var(--color-sand-dark, #E2D4C2);
}
.ab-serve-list li:last-child { border-bottom: none; }
.ab-serve-bullet {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: var(--color-teal, #5B8F8A);
  margin-top: 8px;
}

/* Two content columns */
.ab-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 8px;
}
.ab-two-col h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-navy, #354B5E);
  margin: 0 0 8px;
}
.ab-two-col > div > p {
  font-size: 15px;
  color: var(--color-text-muted, #6b7280);
  line-height: 1.6;
  margin: 0 0 8px;
}

/* ==========================================================================
   Milestones — Timeline
   ========================================================================== */
.ab-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 32px;
  position: relative;
  padding-left: 32px;
}
.ab-timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--color-brand, #dc9435);
  border-radius: 1px;
}
.ab-timeline-item {
  position: relative;
  padding: 0 0 32px;
}
.ab-timeline-item:last-child { padding-bottom: 0; }
.ab-timeline-dot {
  position: absolute;
  left: -32px;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--color-brand, #dc9435);
  z-index: 1;
}
.ab-timeline-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-brand, #dc9435);
  margin: 0 0 4px;
}
.ab-timeline-text {
  font-size: 15px;
  color: var(--color-text, #1f2937);
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   CTA
   ========================================================================== */
.ab-cta {
  text-align: center;
  margin-top: 56px;
  padding: 40px 32px;
  background: var(--color-bg-cream, #fff7f2);
  border: 1px solid var(--color-sand-dark, #E2D4C2);
  border-radius: 16px;
}
.ab-cta h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-navy, #354B5E);
  margin: 0 0 8px;
}
.ab-cta p {
  color: var(--color-text-muted, #6b7280);
  margin: 0 0 24px;
  font-size: 16px;
}
.ab-cta-btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--color-brand, #dc9435);
  color: #fff;
  border-radius: var(--radius-lg, 10px);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  box-shadow: var(--shadow-primary, 0 4px 14px rgba(220, 148, 53, 0.3));
  transition: all 0.2s ease;
}
.ab-cta-btn:hover {
  background: var(--color-brand-hover, #c4842f);
  transform: translateY(-1px);
}

/* ==========================================================================
   Responsive — Tablet (768px)
   ========================================================================== */
@media (max-width: 768px) {
  .ab-hero-inner { padding: 56px 20px 48px; }
  .ab-hero h1 { font-size: 36px; }
  .ab-section { padding: 48px 20px; }
  .ab-section h2 { font-size: 28px; }
  .ab-mission-grid { grid-template-columns: 1fr; gap: 24px; }
  .ab-beliefs { grid-template-columns: 1fr; }
  .ab-team-grid { grid-template-columns: 1fr; gap: 16px; }
  .ab-two-col { grid-template-columns: 1fr; gap: 32px; }
}

/* ==========================================================================
   Responsive — Mobile (480px)
   ========================================================================== */
@media (max-width: 480px) {
  .ab-hero-inner { padding: 40px 16px 36px; }
  .ab-hero h1 { font-size: 28px; }
  .ab-hero-sub { font-size: 16px; }
  .ab-section { padding: 36px 16px; }
  .ab-section h2 { font-size: 24px; }
  .ab-section-sub { font-size: 14px; margin-bottom: 28px; }
  .ab-tagline { font-size: 18px; }
  .ab-team-card { padding: 24px 20px; }
  .ab-cta { padding: 28px 20px; }
  .ab-cta h3 { font-size: 20px; }
}

/* ==========================================================================
   Dark Mode Overrides
   ========================================================================== */

[data-theme="dark"] .ab-body { background: var(--color-bg); color: var(--color-text); }

/* Hero */
[data-theme="dark"] .ab-hero { background: linear-gradient(180deg, #1E1A14 0%, #1a1510 40%, #2A2420 100%); }
[data-theme="dark"] .ab-hero h1 { color: var(--color-text); }
[data-theme="dark"] .ab-hero h1 span { color: var(--color-warning, #f59e0b); }
[data-theme="dark"] .ab-hero-sub { color: var(--color-text-muted); }

/* Dividers */
[data-theme="dark"] .ab-divider-hero-to-sand { background: #2A2420; }
[data-theme="dark"] .ab-divider-hero-to-sand svg { fill: var(--color-sand); stroke: var(--color-sand); }
[data-theme="dark"] .ab-divider-hero-to-sand svg { fill: var(--color-sand); stroke: var(--color-sand); }
[data-theme="dark"] .ab-divider-sand-to-white { background: var(--color-sand); }
[data-theme="dark"] .ab-divider-sand-to-white svg { fill: var(--color-bg); stroke: var(--color-bg); }
[data-theme="dark"] .ab-divider-to-navy { background: var(--color-bg); }
[data-theme="dark"] .ab-divider-to-navy svg { fill: #1a2530; stroke: #1a2530; }
[data-theme="dark"] .ab-divider-from-navy { background: #162028; }
[data-theme="dark"] .ab-divider-from-navy svg { fill: var(--color-bg); stroke: var(--color-bg); }
[data-theme="dark"] .ab-divider-to-sand { background: var(--color-bg); }
[data-theme="dark"] .ab-divider-to-sand svg { fill: var(--color-sand); stroke: var(--color-sand); }

/* Sand section */
[data-theme="dark"] .ab-bg-sand { background: var(--color-sand); }
[data-theme="dark"] .ab-bg-sand h2 { color: var(--color-text); }
[data-theme="dark"] .ab-bg-sand p { color: var(--color-text-secondary); }
[data-theme="dark"] .ab-tagline { color: var(--color-warning, #f59e0b); }

/* Mission cards */
[data-theme="dark"] .ab-mission-card h3 { color: var(--color-text); }
[data-theme="dark"] .ab-mission-card p { color: var(--color-text-muted); }

/* Beliefs */
[data-theme="dark"] .ab-belief-item {
  background: var(--color-bg-card);
  border-color: var(--color-border);
}
[data-theme="dark"] .ab-belief-text { color: var(--color-text-secondary); }

/* Navy section */
[data-theme="dark"] .ab-bg-navy { background: var(--gradient-section-navy); }
[data-theme="dark"] .ab-team-card {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.08);
}

/* Who We Serve / How */
[data-theme="dark"] .ab-two-col h3 { color: var(--color-text); }
[data-theme="dark"] .ab-two-col > div > p { color: var(--color-text-muted); }
[data-theme="dark"] .ab-serve-list li {
  color: var(--color-text-secondary);
  border-bottom-color: var(--color-border);
}

/* Timeline */
[data-theme="dark"] .ab-timeline-dot {
  background: var(--color-bg);
  border-color: var(--color-warning, #f59e0b);
}
[data-theme="dark"] .ab-timeline::before { background: var(--color-warning, #f59e0b); }
[data-theme="dark"] .ab-timeline-label { color: var(--color-warning, #f59e0b); }
[data-theme="dark"] .ab-timeline-text { color: var(--color-text-secondary); }

/* CTA */
[data-theme="dark"] .ab-cta {
  background: var(--color-bg-card);
  border-color: var(--color-border);
}
[data-theme="dark"] .ab-cta h3 { color: var(--color-text); }
[data-theme="dark"] .ab-cta p { color: var(--color-text-muted); }
