/* src/styles/company.css */
/*
 * Company page (/company) layout: a hero, a run of editorial sections (vision, purpose,
 * principles, values, timeline, company facts) and a closing call to action.
 * Loaded after tokens.css and site-header.css. Content is canonical in the company-page
 * draft kept with the brand documentation; this file carries presentation only.
 */

:root {
  --company-container-width: 1080px;
  --company-prose-width: 680px;
  --company-gutter: 24px;
  --company-gutter-mobile: 16px;
  --company-section-gap: 96px;
  --company-section-gap-mobile: 64px;
  --company-hero-top: 72px;
  --company-hero-top-mobile: 40px;
  --company-hero-title-size: clamp(2.25rem, 5.5vw, 3.75rem);
  --company-section-title-size: clamp(1.6rem, 3.2vw, 2.25rem);
  --company-lede-size: clamp(1.1rem, 1.8vw, 1.3rem);
  --company-quote-size: clamp(1.3rem, 2.6vw, 1.75rem);
  --company-eyebrow-tracking: 0.12em;
  --company-title-tracking: -0.02em;
  --company-number-size: 0.8rem;
  --company-rule-width: 1px;
  --company-quote-bar-width: 3px;
  --company-timeline-dot-size: 12px;
  --company-timeline-dot-ring: 4px;
  --company-grid-min-card: 280px;
  --company-split-left: 0.9fr;
  --company-split-right: 1.4fr;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text-primary);
  background: linear-gradient(180deg, var(--bg-page-gradient-start) 0%, var(--bg-primary) 40%, var(--bg-page-gradient-mid-1) 100%);
  line-height: var(--line-height-relaxed);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--brand-primary-active);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.container {
  max-width: var(--company-container-width);
  margin: 0 auto;
  padding: 0 var(--company-gutter);
  width: 100%;
}

main {
  flex: 1;
}

/* ---------- Shared section furniture ---------- */

.company-section {
  padding-top: var(--company-section-gap);
}

.eyebrow {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--company-eyebrow-tracking);
  text-transform: uppercase;
  color: var(--brand-primary-active);
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: var(--company-section-title-size);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--company-title-tracking);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-6);
}

.prose {
  max-width: var(--company-prose-width);
}

.prose p {
  color: var(--text-secondary-strong);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-5);
}

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

/* Two columns: heading on the left, body on the right; stacks on small screens. */
.split {
  display: grid;
  grid-template-columns: var(--company-split-left) var(--company-split-right);
  gap: var(--space-12);
  align-items: start;
}

/* ---------- Hero ---------- */

.company-hero {
  padding-top: var(--company-hero-top);
}

.company-hero h1 {
  font-size: var(--company-hero-title-size);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--company-title-tracking);
  line-height: 1.08;
  max-width: 20ch;
  margin-bottom: var(--space-6);
}

.company-hero h1 .accent {
  background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-accent-green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.company-hero .lede {
  font-size: var(--company-lede-size);
  color: var(--text-secondary-soft);
  max-width: var(--company-prose-width);
  line-height: var(--line-height-normal);
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-8);
  padding: var(--space-1) var(--space-4) var(--space-1) var(--space-1);
  border: var(--company-rule-width) solid var(--brand-alpha-20);
  border-radius: 999px;
  background: var(--surface-glass-80);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.status-line .tag {
  padding: 2px var(--space-3);
  border-radius: 999px;
  background: var(--text-primary);
  color: var(--text-on-brand);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-xs);
}

/* ---------- Vision ---------- */

.pull-quote {
  margin-top: var(--space-10);
  padding-left: var(--space-6);
  border-left: var(--company-quote-bar-width) solid var(--brand-primary);
  font-size: var(--company-quote-size);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--company-title-tracking);
  color: var(--text-primary);
  max-width: var(--company-prose-width);
}

/* ---------- Principles (numbered cards) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--company-grid-min-card), 1fr));
  gap: var(--space-5);
  list-style: none;
}

.card {
  padding: var(--space-6);
  border-radius: var(--radius-2xl);
  border: var(--company-rule-width) solid var(--brand-alpha-15);
  background: var(--surface-glass-85);
  box-shadow: var(--shadow-card);
}

.card .num {
  display: block;
  font-size: var(--company-number-size);
  font-weight: var(--font-weight-semibold);
  color: var(--brand-primary-active);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--space-3);
}

.card h3 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-2);
}

.card p {
  color: var(--text-secondary-soft);
  font-size: var(--font-size-base);
}

/* ---------- Values (ruled list) ---------- */

.values {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: var(--space-12);
}

.values li {
  padding: var(--space-6) 0;
  border-top: var(--company-rule-width) solid var(--overlay-black-10);
}

.values h3 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-2);
}

.values p {
  color: var(--text-secondary-soft);
}

/* ---------- Timeline ---------- */

.timeline {
  list-style: none;
  position: relative;
  max-width: var(--company-prose-width);
}

.timeline::before {
  content: "";
  position: absolute;
  top: var(--space-2);
  bottom: var(--space-2);
  left: calc(var(--company-timeline-dot-size) / 2 - var(--company-rule-width) / 2);
  width: var(--company-rule-width);
  background: var(--brand-alpha-30);
}

.timeline li {
  position: relative;
  padding-left: var(--space-10);
  padding-bottom: var(--space-6);
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: var(--space-2);
  width: var(--company-timeline-dot-size);
  height: var(--company-timeline-dot-size);
  border-radius: var(--radius-full);
  background: var(--brand-primary);
  box-shadow: 0 0 0 var(--company-timeline-dot-ring) var(--brand-alpha-15);
}

.timeline li.is-planned::before {
  background: var(--bg-primary);
  border: 2px solid var(--brand-primary);
}

.timeline .when {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--text-tertiary);
}

.timeline .what {
  color: var(--text-primary);
  font-size: var(--font-size-lg);
}

.note {
  margin-top: var(--space-8);
  color: var(--text-tertiary);
  max-width: var(--company-prose-width);
}

/* ---------- Company facts + trust ---------- */

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: var(--space-8);
  row-gap: var(--space-3);
}

.facts dt {
  color: var(--text-tertiary);
  font-size: var(--font-size-sm);
  padding-top: 2px;
}

.facts dd {
  color: var(--text-primary);
}

.panel-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-4);
}

.check-list {
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: var(--space-6);
  margin-bottom: var(--space-3);
  color: var(--text-secondary-strong);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: var(--space-2);
  height: var(--space-2);
  border-radius: var(--radius-full);
  background: var(--brand-accent-green);
}

.small-links {
  margin-top: var(--space-4);
  font-size: var(--font-size-sm);
}

/* ---------- Closing call to action ---------- */

.cta-band {
  margin-top: var(--company-section-gap);
  margin-bottom: var(--company-section-gap);
  padding: var(--space-12);
  border-radius: var(--radius-2xl);
  background: var(--text-primary);
  color: var(--text-on-brand);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-10);
  align-items: center;
}

.cta-band h2 {
  font-size: var(--company-section-title-size);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--company-title-tracking);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-3);
}

.cta-band p {
  color: var(--text-disabled);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: flex-start;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--brand-primary);
  color: var(--text-primary);
  box-shadow: var(--shadow-cta);
}

.btn-primary:hover {
  background: var(--brand-primary-hover);
  box-shadow: var(--shadow-cta-hover);
}

.btn-quiet {
  color: var(--text-on-brand);
  border: var(--company-rule-width) solid var(--text-tertiary);
}

.btn-quiet:hover {
  background: var(--text-secondary);
}

.contact-list {
  margin-top: var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--text-disabled);
  list-style: none;
}

.contact-list a {
  color: var(--text-on-brand);
}

/* ---------- Footer (matches the other content pages) ---------- */

footer {
  padding: var(--space-8) 0;
  border-top: var(--company-rule-width) solid var(--brand-alpha-10);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--brand-primary);
}

.copyright {
  color: var(--text-muted-soft);
  font-size: var(--font-size-sm);
}

/* ---------- Small screens ---------- */

@media (max-width: 767px) {
  .container {
    padding: 0 var(--company-gutter-mobile);
  }

  .company-hero {
    padding-top: var(--company-hero-top-mobile);
  }

  .company-section {
    padding-top: var(--company-section-gap-mobile);
  }

  .split,
  .values,
  .cta-band {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .values {
    row-gap: 0;
  }

  .cta-band {
    padding: var(--space-8) var(--space-6);
    margin-top: var(--company-section-gap-mobile);
    margin-bottom: var(--company-section-gap-mobile);
  }

  .facts {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .facts dd {
    margin-bottom: var(--space-3);
  }

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

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
