/* ============================================================
   About Our Firm - Page Styles
   Davidson Law Offices
   All values reference CSS tokens from /css/base.css
   ============================================================ */


/* ============================================================
   1. ABOUT HERO
   ============================================================ */

.about-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 768px) {
  .about-hero {
    min-height: 280px;
  }
}

.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 26, 35, 0.70);
  z-index: 0;
}

.about-hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: center;
  padding: var(--space-20) var(--space-6);
  width: 100%;
}

.about-hero h1 {
  font-family: var(--font-heading);
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-bold);
  color: #fff;
  margin-bottom: var(--space-4);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  line-height: var(--line-height-tight);
}

@media (max-width: 768px) {
  .about-hero h1 {
    font-size: var(--font-size-3xl);
  }

  .about-hero p {
    font-size: var(--font-size-base);
  }

  .about-hero-content {
    padding: var(--space-12) var(--space-6);
  }
}

.about-hero p {
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  line-height: var(--line-height-relaxed);
}


/* ============================================================
   2. BIO SECTION
   ============================================================ */

.bio-section {
  background: var(--color-bg);
  padding: var(--section-padding-y) var(--section-padding-x);
}

.bio-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-16);
  align-items: start;
}

.bio-image-col {
  position: sticky;
  top: calc(72px + var(--space-8));
  align-self: start;
}

.bio-image {
  width: 100%;
  border-radius: var(--img-radius);
  box-shadow: var(--shadow-xl);
  display: block;
}

.bio-credentials {
  margin-top: var(--space-6);
  background: var(--color-bg-secondary);
  border-radius: var(--card-radius);
  padding: var(--space-6);
  border-left: 4px solid var(--color-primary);
}

.bio-credentials h3 {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-secondary);
  margin-bottom: var(--space-4);
}

.bio-credentials ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bio-credentials li {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  line-height: var(--line-height-relaxed);
}

.bio-credentials li:last-child {
  border-bottom: none;
}

.bio-text-col .accent-line {
  margin-bottom: var(--space-6);
}

.bio-text-col h2 {
  font-family: var(--font-heading);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-secondary);
  margin-bottom: var(--space-6);
  line-height: var(--line-height-tight);
}

.bio-text-col p {
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-5);
  font-size: var(--font-size-base);
}

/* Bio section responsive */
@media (max-width: 900px) {
  .bio-grid {
    grid-template-columns: 1fr;
  }

  .bio-image-col {
    position: static;
  }
}


/* ============================================================
   3. TIMELINE SECTION
   ============================================================ */

.timeline-section {
  background: var(--color-secondary);
  padding: var(--section-padding-y) var(--section-padding-x);
}

.timeline-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.timeline-header h2 {
  font-family: var(--font-heading);
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: #fff;
  line-height: var(--line-height-tight);
}

.timeline-header p {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--font-size-lg);
  margin-top: var(--space-4);
  line-height: var(--line-height-relaxed);
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  isolation: isolate;
}

.timeline::before {
  display: none;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(254, 189, 14, 0.4);
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
}

/* FIX: .reveal was on .timeline-item causing transform/opacity stacking contexts that
   broke z-index layering. Moved .reveal to .timeline-content instead. .timeline-item
   no longer needs z-index since it no longer creates a stacking context. */
.timeline-item {
  display: flex;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
  align-items: flex-start;
  position: relative;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-item:nth-child(even) .timeline-content {
  text-align: right;
}

.timeline-year {
  flex-shrink: 0;
  width: 120px;
  text-align: right;
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  color: var(--color-accent);
  font-weight: var(--font-weight-bold);
  padding-top: var(--space-1);
}

.timeline-item:nth-child(even) .timeline-year {
  text-align: left;
}

.timeline-dot {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  border: 3px solid var(--color-secondary);
  position: relative;
  z-index: 2;
  margin-top: var(--space-2);
}

.timeline-content {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--card-radius);
  padding: var(--space-6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 2;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.timeline-content h3 {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: #fff;
  margin-bottom: var(--space-2);
}

.timeline-content p {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
}

/* Timeline section responsive */
@media (max-width: 768px) {
  .timeline-line {
    left: 24px;
  }

  .timeline-item {
    flex-direction: column;
  }

  .timeline-item:nth-child(even) {
    flex-direction: column;
  }

  .timeline-item:nth-child(even) .timeline-content {
    text-align: left;
  }

  .timeline-item:nth-child(even) .timeline-year {
    text-align: left;
  }

  .timeline-year {
    width: auto;
    text-align: left;
  }

  .timeline-dot {
    margin-left: 16px;
  }
}


/* ============================================================
   4. PHILOSOPHY SECTION
   ============================================================ */

.philosophy-section {
  background: var(--color-bg-secondary);
  padding: var(--section-padding-y) var(--section-padding-x);
}

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

.philosophy-text h2 {
  font-family: var(--font-heading);
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-secondary);
  margin-bottom: var(--space-6);
  line-height: var(--line-height-tight);
}

.philosophy-text p {
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-5);
}

.philosophy-image {
  border-radius: var(--img-radius);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.philosophy-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.values-list {
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.value-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.value-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.value-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-secondary);
  margin-bottom: var(--space-1);
}

.value-desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

/* Philosophy section responsive */
@media (max-width: 900px) {
  .philosophy-inner {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   5. BAR SECTION (Bar Memberships / Associations)
   ============================================================ */

.bar-section {
  background: #fff;
  padding: var(--section-padding-y) var(--section-padding-x);
}

.bar-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.bar-header h2 {
  font-family: var(--font-heading);
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-secondary);
  line-height: var(--line-height-tight);
}

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

.bar-card {
  background: var(--color-bg-secondary);
  border-radius: var(--card-radius);
  padding: var(--space-8) var(--space-10);
  border-top: 4px solid var(--color-primary);
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  transition: box-shadow var(--duration-normal) var(--ease-default), transform var(--duration-normal) var(--ease-default);
}

.bar-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.bar-card-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex: 0 0 160px;
  padding-right: var(--space-6);
  text-align: center;
}

.bar-card-divider {
  width: 3px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  align-self: stretch;
  flex-shrink: 0;
}

.bar-card-right {
  flex: 1;
  padding-left: var(--space-6);
  display: flex;
  align-items: center;
}

.bar-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.bar-card h3 {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-secondary);
  margin: 0;
}

.bar-card p {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  text-align: left;
  margin: 0;
}

/* Bar section responsive */
@media (max-width: 768px) {
  .bar-card {
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-6);
  }

  .bar-card-left {
    flex: none;
    flex-direction: row;
    justify-content: flex-start;
    padding-right: 0;
    gap: var(--space-3);
    text-align: left;
  }

  .bar-card-divider {
    width: 100%;
    height: 3px;
    align-self: auto;
  }

  .bar-card-right {
    padding-left: 0;
  }
}


/* ============================================================
   6. ABOUT CTA SECTION
   ============================================================ */

.about-cta-section {
  background: var(--color-primary);
  padding: var(--section-padding-y) var(--section-padding-x);
  text-align: center;
}

.about-cta-section h2 {
  font-family: var(--font-heading);
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: #fff;
  margin-bottom: var(--space-4);
  line-height: var(--line-height-tight);
}

.about-cta-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--font-size-lg);
  max-width: 600px;
  margin: 0 auto var(--space-8);
  line-height: var(--line-height-relaxed);
}

.cta-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .about-cta-section h2 {
    font-size: var(--font-size-2xl);
  }

  .bio-section,
  .timeline-section,
  .philosophy-section,
  .bar-section,
  .about-cta-section {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
  }
}
