/* css/page-overrides.css — page-specific override layer: careers, AEO/GEO, about */

/* Careers Page */
.mission-section,
.founders-section,
.open-positions-section {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

.mission-section {
  background-color: var(--color-background-subtle);
}

.mission-section h2,
.founders-section h2,
.open-positions-section h2 {
  margin-bottom: var(--space-xl);
  text-align: center;
}

.large-text {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.narrow-text {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Founders Grid */
.founders-grid {
  display: grid;
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
}

@media (min-width: 768px) {
  .founders-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }
}

.founder-card {
  padding: var(--space-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: 12px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-subtle);
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.founder-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
  border-color: var(--color-accent-light);
}

.founder-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
  border-color: var(--color-accent-light);
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.founder-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--space-lg);
  border: 4px solid var(--color-background-subtle);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.founder-card h3 {
  margin: 0 0 var(--space-xs) 0;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
}

.founder-title {
  color: var(--color-accent);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-md);
  font-size: var(--font-size-base);
}

.founder-card p:last-child {
  margin: 0;
  line-height: 1.6;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: var(--font-size-base);
}

/* Company Basics */
.company-basics {
  margin: var(--space-2xl) auto;
  max-width: 900px;
  padding: var(--space-xl);
  background-color: var(--color-background-subtle);
  border-radius: 8px;
}

.basics-grid {
  display: grid;
  gap: var(--space-lg);
}

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

.basics-item h4 {
  margin: 0 0 var(--space-xs) 0;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

.basics-item p {
  margin: 0;
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
}

/* Job Listings */
.job-listings {
  margin-top: var(--space-2xl);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.job-item {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: var(--space-lg);
  overflow: hidden;
  background: var(--color-background);
}

.job-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s ease;
}

.job-toggle:hover {
  background-color: var(--color-background-subtle);
}

.job-toggle:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: -2px;
}

.job-toggle .dropdown-icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: var(--color-text-secondary);
  margin-top: var(--space-xs);
  align-self: flex-start;
}

.job-toggle[aria-expanded="true"] .dropdown-icon {
  transform: rotate(90deg);
}

.job-header {
  flex: 1;
}

.job-toggle h3 {
  margin: 0 0 var(--space-xs) 0;
  font-size: var(--font-size-xl);
  color: var(--color-text);
}

.job-meta {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

/* Job Details */
.job-details {
  border-top: none;
  background-color: var(--color-background);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

/* Kept in flow (display:block) so the max-height collapse can animate, but
   visibility:hidden removes the closed panel from the a11y tree and tab order
   so collapsed job content isn't reachable by AT or keyboard. */
.job-details[hidden] {
  display: block;
  visibility: hidden;
}

.job-toggle[aria-expanded="true"]+.job-details {
  max-height: 5000px;
  border-top: 1px solid var(--color-border);
}

.job-content {
  padding: var(--space-xl);
}

.job-content h4 {
  margin: var(--space-xl) 0 var(--space-md) 0;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

.job-content h4:first-child {
  margin-top: 0;
}

.job-content p {
  margin: 0 0 var(--space-md) 0;
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
}

.job-content ul,
.job-content ol {
  margin: 0 0 var(--space-md) 0;
  padding-left: var(--space-xl);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
}

.job-content li {
  margin-bottom: var(--space-sm);
}

.job-content li strong {
  color: var(--color-text);
}

.equal-opportunity {
  font-size: var(--font-size-sm);
  font-style: italic;
  color: var(--color-text-secondary);
  margin: var(--space-lg) 0;
}

.job-cta {
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

@media (max-width: 767px) {
  .job-toggle {
    padding: var(--space-md);
  }

  .job-content {
    padding: var(--space-md);
  }

  .job-toggle h3 {
    font-size: var(--font-size-lg);
  }
}

/* --- AEO/GEO UPDATE STYLES --- */

/* Statistics Context Section */
.context-stats {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  background-color: var(--color-background-subtle);
}

.stats-grid {
  display: grid;
  gap: var(--space-xl);
  text-align: left;
}

.stat-item {
  padding: var(--space-xl);
  background-color: var(--color-surface);
  border-radius: 12px;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--color-border-subtle);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.stat-item .stat-number {
  font-size: 3.5rem;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
  font-weight: var(--font-weight-black);
  line-height: 1;
}

.stat-item p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-lg);
  line-height: 1.5;
}

/* What is Brief Section */
.what-is-brief {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  background-color: var(--color-background);
}

.wib-grid {
  display: grid;
  gap: var(--space-2xl);
}

.wib-component-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.wib-card {
  padding: var(--space-lg);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: 12px;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.wib-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  border-color: var(--color-accent-light);
}

.wib-card h3 {
  margin-top: 0;
  margin-bottom: var(--space-xs);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
}

.wib-card p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.5;
  margin: 0;
}

.wib-how-it-works {
  padding: var(--space-xl);
  background-color: var(--color-background-subtle);
  border-radius: 12px;
  border: 1px solid var(--color-border-subtle);
}

.wib-how-it-works h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.wib-how-it-works p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.wib-how-it-works ol {
  padding-left: var(--space-lg);
  margin: 0;
}

.wib-how-it-works li {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.wib-how-it-works strong {
  color: var(--color-text);
  font-weight: var(--font-weight-semibold);
}

@media (max-width: 600px) {
  .wib-component-list {
    grid-template-columns: 1fr;
  }
}

/* FAQ Section */
.faq-section {
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
}

.faq-section .container {
  max-width: 800px;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

details.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-lg);
}

details.faq-item summary {
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-lg);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: var(--space-xl);
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: var(--font-size-xl);
  font-weight: normal;
  color: var(--color-text-secondary);
}

details.faq-item[open] summary::after {
  content: '-';
}

details.faq-item .faq-answer {
  margin-top: var(--space-md);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

details.faq-item .faq-answer p + p {
  margin-top: var(--space-md);
}

/* Responsive Overrides for New Sections */
@media (max-width: 768px) {
  .stat-item .stat-number {
    font-size: 2.5rem;
  }
}

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

  .wib-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
  }
}

/* About Page Specific Styles */
.hero-about {
  background: linear-gradient(-45deg, var(--color-background), var(--color-background-subtle), var(--color-surface), var(--color-background));
  background-size: 400% 400%;
  animation: gradient-flow 15s ease infinite;
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

@media (prefers-reduced-motion: reduce) {
  .hero-about {
    animation: none;
    background-position: 0% 50%;
  }
}

.hero-about::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}

.hero-about .container {
  position: relative;
  z-index: 1;
}

.mission-grid {
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
}

.mission-graphic {
  background: var(--color-background-subtle);
  border-radius: 12px;
  padding: var(--space-xl);
  border: 1px solid var(--color-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  position: relative;
  overflow: hidden;
}

.mission-graphic::after {
  content: '';
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  border-radius: 24px;
  transform: rotate(15deg);
  box-shadow: var(--shadow-large);
  opacity: 0.9;
  position: absolute;
  z-index: 1;
}

.mission-graphic::before {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  border: 2px solid var(--color-border);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.5;
  z-index: 0;
}

.mission-logo {
  width: 120px;
  height: auto;
  position: relative;
  z-index: 10;
  opacity: 0.9;
  filter: brightness(0) invert(1);
}

.mission-graphic-image-only::before,
.mission-graphic-image-only::after {
  display: none;
}

/* Generic hero eyebrow style for all landing pages */
.hero .eyebrow {
  margin-bottom: var(--space-sm);
  color: var(--color-accent);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: var(--font-size-sm);
}

/* Legacy class - kept for backwards compatibility */
.about-hero-eyebrow {
  margin-bottom: var(--space-sm);
  color: var(--color-accent);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: var(--font-size-sm);
}

.mission-lede {
  text-align: left;
  margin: 0 0 var(--space-lg) 0;
}

.mission-followup {
  margin-top: var(--space-lg);
}

.story-grid {
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
}

.story-grid .mission-content {
  order: 2;
}

.story-grid .mission-graphic {
  order: 1;
}

.story-graphic {
  background: transparent;
  border: none;
  padding: var(--space-lg);
  overflow: visible;
  min-height: auto;
}

.story-photo {
  max-width: 280px;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-background-subtle);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 10;
}

.story-body p {
  margin-bottom: var(--space-md);
}

.story-body p:first-child {
  margin-top: 0;
}

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

.location-map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--color-border-subtle);
  margin-top: var(--space-xl);
  background: var(--color-surface);
  padding: 4px;
}

.location-map-container iframe {
  border: 0;
  border-radius: 8px;
  width: 100%;
  height: 450px;
  display: block;
}

@media (min-width: 900px) {
  .mission-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
  }

  .mission-content {
    order: 1;
  }

  .mission-graphic {
    order: 2;
  }

  .story-grid {
    grid-template-columns: 1fr 2fr;
    gap: var(--space-4xl);
  }
}
