/* flaskapp/static/css/company.css */

/* Shared palette / tokens (from about_us.css) */
:root {
  --baltic-blue: #336699;
  --sky-reflection: #86BBD8;
  --charcoal-blue: #2F4858;
  --light-green: #9EE493;
  --frosted-mint: #DAF7DC;

  --bg-deep: #101822;
  --text-main: #f7fafc;
  --text-soft: #cbd5e1;
}

/* =========================================================
 * Shared hero + hex background
 * ======================================================= */

.about-hero,
.careers-hero,
.ir-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  overflow: hidden;
  color: var(--text-main);
}

/* Individual hero backgrounds / heights */
.about-hero {
  min-height: clamp(520px, 65vh, 720px);
  background: radial-gradient(
      circle at 0% 0%,
      var(--sky-reflection) 0,
      #10131b 35%,
      #070a0f 100%
    );
}

.careers-hero {
  min-height: clamp(520px, 65vh, 720px);
  background: radial-gradient(
      circle at 0% 0%,
      rgba(134, 187, 216, 0.4) 0,
      #10131b 35%,
      #070a0f 100%
    );
}

.careers-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 100% 0%,
      rgba(158, 228, 147, 0.16),
      transparent 55%
    );
  opacity: 0.7;
  pointer-events: none;
}

.ir-hero {
  min-height: clamp(480px, 60vh, 680px);
  background: radial-gradient(
      circle at 20% 0%,
      rgba(134, 187, 216, 0.32),
      transparent 55%
    ),
    radial-gradient(
      circle at 100% 0%,
      rgba(158, 228, 147, 0.18),
      transparent 60%
    ),
    #050910;
}

/* Shared hex background container */
#hex-bg {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  pointer-events: none;
}

#hex-bg canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Hero inner containers */
.about-hero-inner,
.careers-hero-inner,
.ir-hero-inner {
  position: relative;
  max-width: 960px;
  z-index: 1;
}

/* Careers hero: treat kicker as main heading */
.careers-hero-inner .hero-kicker {
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #ffffff;
  margin-bottom: 0.8rem;
}

.careers-hero-inner .hero-subtitle {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-soft);
}

/* Shared hero typography */
.hero-kicker {
  font-size: 0.9rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--frosted-mint);
  margin-bottom: 0.85rem;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.05;
  margin: 0;
  color: #ffffff;
}

.hero-subtitle {
  margin-top: 1.1rem;
  max-width: 620px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-soft);
}

.hero-points {
  margin-top: 2.1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.hero-point {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: linear-gradient(
    135deg,
    rgba(15, 30, 48, 0.92),
    rgba(10, 24, 43, 0.9)
  );
  border: 1px solid rgba(134, 187, 216, 0.3);
  font-size: 0.92rem;
  color: var(--frosted-mint);
}

.hero-point-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--light-green);
  margin-bottom: 0.3rem;
}

/* Scroll reveal shared baseline (for careers / IR cards, if used) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.25s ease-out,
    transform 0.25s ease-out,
    box-shadow 0.16s ease-out,
    border-color 0.16s ease-out;
}

.reveal-on-scroll.is-visible,
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Shared CTA + button style */
.about-cta {
  padding: 3.6rem 1.5rem 4rem;
  background: #02040a;
}

.about-cta-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 1.9rem;
  border-radius: 1.6rem;
  background: linear-gradient(
    145deg,
    rgba(8, 20, 34, 0.98),
    rgba(18, 40, 62, 0.98)
  );
  border: 1px solid rgba(134, 187, 216, 0.55);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.8);
  color: var(--frosted-mint);
}

.about-cta-inner h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  color: #f9fbff;
}

.about-cta-inner p {
  margin: 0 0 1.6rem;
  font-size: 0.97rem;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Shared primary button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--baltic-blue), var(--sky-reflection));
  color: #ffffff;
  border: none;
  box-shadow: 0 10px 26px rgba(22, 94, 144, 0.7);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(22, 94, 144, 0.9);
}

/* Typography alignment, shared */
.about-hero,
.careers-hero,
.ir-hero,
.about-taglines,
.about-structure,
.about-cta,
.careers-values,
.careers-openings,
.careers-process,
.about-cta.careers-cta,
.ir-snapshot,
.ir-strategy,
.ir-governance,
.ir-documents,
.about-cta.ir-cta {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

.hero-title,
.structure-title,
.careers-section-title,
.ir-section-title,
.ir-hero .hero-title {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero-subtitle,
.structure-intro,
.careers-value-text,
.career-role-summary,
.careers-step-text,
.ir-card-text,
.ir-doc-text,
.ir-list {
  font-weight: 400;
}

/* =========================================================
 * About us sections
 * ======================================================= */

/* Tagline section */
.about-taglines {
  background: radial-gradient(
      circle at top,
      rgba(134, 187, 216, 0.22),
      transparent 55%
    ),
    #050910;
  padding: 3.5rem 1.5rem;
  color: var(--text-main);
}

.taglines-inner {
  max-width: 840px;
  margin: 0 auto;
}

.taglines-title {
  font-size: 1.4rem;
  margin: 0 0 1rem;
  color: #f9fbff;
}

.tagline-rotator {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.9rem 1rem;
  border-radius: 999px;
  background: rgba(7, 14, 24, 0.9);
  border: 1px solid rgba(158, 228, 147, 0.55);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.7);
  margin-bottom: 1.4rem;
}

.tagline-prefix {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--frosted-mint);
}

.tagline-word {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--light-green);
}

.tagline-notes p {
  margin: 0 0 0.5rem;
  font-size: 0.96rem;
  color: var(--text-soft);
}

.tagline-notes ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--frosted-mint);
  font-size: 0.94rem;
}

/* Structure section */
.about-structure {
  background: radial-gradient(
      circle at 100% 0%,
      rgba(158, 228, 147, 0.22),
      transparent 55%
    ),
    #03060c;
  padding: 3.8rem 1.5rem 3.9rem;
  color: var(--text-main);
}

.structure-inner {
  max-width: 960px;
  margin: 0 auto;
}

.structure-title {
  font-size: 1.4rem;
  margin: 0 0 0.9rem;
  color: #f9fbff;
}

.structure-intro {
  margin: 0 0 1.8rem;
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--text-soft);
}

.structure-graph {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.2rem;
  align-items: flex-start;
}

.structure-node {
  position: relative;
  border-radius: 1.2rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(
    145deg,
    rgba(9, 16, 28, 0.96),
    rgba(18, 35, 58, 0.96)
  );
  border: 1px solid rgba(51, 102, 153, 0.55);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.7);
  opacity: 0.75;
  transition:
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.structure-node:hover {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.85);
  transform: translateY(-1px);
}

.structure-node-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.45rem;
  color: var(--frosted-mint);
}

.structure-node-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-soft);
}

.structure-node.structure-root {
  border-color: rgba(134, 187, 216, 0.8);
}

.structure-node.structure-brand {
  border-color: rgba(51, 102, 153, 0.9);
}

.structure-node.structure-product {
  border-color: rgba(158, 228, 147, 0.9);
}

.structure-node.structure-impact {
  border-color: rgba(218, 247, 220, 0.9);
}

.structure-link {
  display: none;
}

/* =========================================================
 * Careers sections
 * ======================================================= */

/* Why work here */
.careers-values {
  background: radial-gradient(
      circle at top,
      rgba(134, 187, 216, 0.22),
      transparent 55%
    ),
    #050910;
  padding: 3.2rem 1.5rem 3.4rem;
  color: var(--text-main);
}

.careers-value-card {
  border-radius: 1.2rem;
  padding: 1.3rem 1.3rem 1.25rem;
  background: linear-gradient(
    145deg,
    rgba(9, 16, 28, 0.96),
    rgba(18, 35, 58, 0.98)
  );
  border: 1px solid rgba(51, 102, 153, 0.55);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.7);
  font-size: 0.95rem;
  color: var(--text-soft);
}

.careers-value-card:hover {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.85);
  border-color: rgba(158, 228, 147, 0.9);
}

.careers-value-title {
  font-size: 1.05rem;
  margin: 0 0 0.6rem;
  color: #f9fbff;
}

.careers-value-text {
  margin: 0;
  line-height: 1.7;
}

/* Open roles */
.careers-openings {
  background: #03060c;
  padding: 3.2rem 1.5rem 3.6rem;
  color: var(--text-main);
}

.careers-section-title {
  font-size: 1.35rem;
  margin: 0;
  color: #f9fbff;
}

/* ONE COLUMN, MORE AIR BETWEEN CARDS */
.careers-openings .structure-graph {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.8rem;
}

/* Role card: lighter look */
.career-role-card {
  position: relative;
  border-radius: 1.2rem;
  padding: 1.4rem 1.5rem 1.3rem;
  background: linear-gradient(
    145deg,
    rgba(9, 16, 28, 0.94),
    rgba(12, 26, 44, 0.98)
  );
  border: 1px solid rgba(51, 102, 153, 0.6);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.75);
  font-size: 0.92rem;
  color: var(--text-soft);
}

.career-role-card:hover {
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.9);
  border-color: rgba(158, 228, 147, 0.9);
  transform: translateY(-1px);
}

/* main role title */
.career-role-title {
  font-size: 1.1rem;
  margin: 0;
  color: #f9fbff;
}

/* section headings inside role cards: Key Responsibilities, etc. */
.career-role-card h4 {
  margin-top: 1.1rem;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--light-green);
}

/* META LINE INSTEAD OF LOUD TAG PILLS */
.career-role-meta {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

/* tags become plain text; no background/border */
.career-tag-badge {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-weight: 500;
}

/* add a subtle dot between tags */
.career-role-meta .career-tag-badge + .career-tag-badge::before {
  content: "•";
  margin: 0 0.45rem 0 0.35rem;
  opacity: 0.6;
}

/* summary stands out from body text */
.career-role-summary {
  margin-top: 0.65rem;
  margin-bottom: 0.75rem;
  line-height: 1.7;
  color: var(--text-main);
}

/* Empty state */
.careers-empty {
  background: radial-gradient(
      circle at 50% 0%,
      rgba(134, 187, 216, 0.2),
      transparent 55%
    ),
    #050910;
  border-radius: 1.3rem;
  border: 1px dashed rgba(134, 187, 216, 0.55);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8);
}

/* Hiring process */
.careers-process {
  background: radial-gradient(
      circle at 100% 0%,
      rgba(158, 228, 147, 0.22),
      transparent 55%
    ),
    #02040a;
  padding: 3.4rem 1.5rem 3.6rem;
  color: var(--text-main);
}

.careers-process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: careers-steps;
}

.careers-process-steps li {
  position: relative;
  padding-left: 2.4rem;
  padding-bottom: 0.9rem;
  margin-bottom: 0.4rem;
}

.careers-process-steps li::before {
  counter-increment: careers-steps;
  content: counter(careers-steps);
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    var(--baltic-blue),
    var(--sky-reflection)
  );
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(22, 94, 144, 0.8);
}

.careers-step-label {
  display: block;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--frosted-mint);
  margin-bottom: 0.25rem;
}

.careers-step-text {
  display: block;
  color: var(--text-soft);
}

/* CTA tweaks for careers */
.about-cta.careers-cta {
  background: #02040a;
  padding-top: 3.2rem;
}

.careers-cta .about-cta-inner {
  border-color: rgba(158, 228, 147, 0.75);
}

/* =========================================================
 * Investor relations sections
 * ======================================================= */

/* Snapshot */
.ir-snapshot {
  background: radial-gradient(
      circle at top,
      rgba(134, 187, 216, 0.2),
      transparent 55%
    ),
    #03060c;
  padding: 3.2rem 1.5rem 3.4rem;
  color: var(--text-main);
}

.ir-card {
  border-radius: 1.2rem;
  padding: 1.3rem 1.3rem 1.25rem;
  background: linear-gradient(
    145deg,
    rgba(9, 16, 28, 0.96),
    rgba(18, 35, 58, 0.98)
  );
  border: 1px solid rgba(51, 102, 153, 0.6);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.75);
  font-size: 0.95rem;
  color: var(--text-soft);
}

.ir-card:hover {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.9);
  border-color: rgba(158, 228, 147, 0.9);
}

.ir-card-title {
  font-size: 1.05rem;
  margin: 0 0 0.6rem;
  color: #f9fbff;
}

.ir-card-text {
  margin: 0;
  line-height: 1.7;
}

.ir-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--frosted-mint);
}

/* Strategy / roadmap */
.ir-strategy {
  background: radial-gradient(
      circle at 100% 0%,
      rgba(158, 228, 147, 0.22),
      transparent 55%
    ),
    #02040a;
  padding: 3.4rem 1.5rem 3.4rem;
  color: var(--text-main);
}

.ir-section-title {
  font-size: 1.35rem;
  margin: 0;
  color: #f9fbff;
}

/* Centered vertical roadmap with alternating sides */
.ir-roadmap {
  position: relative;
  margin-top: 2rem;
  padding: 0 0 1.5rem;
}

.ir-roadmap-track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    rgba(134, 187, 216, 0.4),
    rgba(158, 228, 147, 0.8),
    rgba(134, 187, 216, 0.4)
  );
  opacity: 0.9;
  pointer-events: none;
}

.ir-roadmap-item {
  position: relative;
  display: flex;
  margin: 0 0 2.4rem;
}

.ir-roadmap-item:last-child {
  margin-bottom: 0;
}

/* Left side items */
.ir-roadmap-item--left {
  justify-content: flex-start;
  padding-right: 52%;
}

/* Right side items */
.ir-roadmap-item--right {
  justify-content: flex-end;
  padding-left: 52%;
}

/* Dot on the center line */
.ir-roadmap-dot {
  position: absolute;
  top: 1.7rem;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  background: #02040a;
  border: 2px solid rgba(158, 228, 147, 0.9);
  box-shadow: 0 0 0 4px rgba(158, 228, 147, 0.22);
}

/* Roadmap card content */
.ir-roadmap-content {
  max-width: 360px;
  padding: 1rem 1.2rem 1.05rem;
  border-radius: 1.1rem;
  background: linear-gradient(
    145deg,
    rgba(9, 16, 28, 0.96),
    rgba(18, 35, 58, 0.98)
  );
  border: 1px solid rgba(51, 102, 153, 0.6);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.75);
  font-size: 0.93rem;
  color: var(--text-soft);
}

.ir-roadmap-year {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--frosted-mint);
  margin-bottom: 0.25rem;
}

.ir-roadmap-label {
  font-size: 1rem;
  font-weight: 600;
  color: #f9fbff;
  margin-bottom: 0.3rem;
}

.ir-roadmap-item p {
  margin: 0 0 0.4rem;
  font-size: 0.93rem;
  color: var(--text-soft);
}

/* Governance & contact */
.ir-governance {
  background: #02040a;
  padding: 3.4rem 1.5rem 3.6rem;
  color: var(--text-main);
}

.ir-contact-card {
  border-radius: 1.2rem;
  padding: 1.4rem 1.4rem 1.3rem;
  background: linear-gradient(
    145deg,
    rgba(8, 20, 34, 0.98),
    rgba(18, 40, 62, 0.98)
  );
  border: 1px solid rgba(134, 187, 216, 0.55);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
  color: var(--frosted-mint);
}

/* Documents */
.ir-documents {
  background: #02040a;
  padding: 3.2rem 1.5rem 3.8rem;
  color: var(--text-main);
}

.ir-doc-card {
  position: relative;
  display: block;
  padding: 1.2rem 1.2rem 1.05rem;
  border-radius: 1.1rem;
  background: linear-gradient(
    145deg,
    rgba(9, 16, 28, 0.96),
    rgba(18, 35, 58, 0.96)
  );
  border: 1px solid rgba(51, 102, 153, 0.6);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.75);
  text-decoration: none;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.ir-doc-card:hover {
  border-color: rgba(158, 228, 147, 0.9);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.9);
  transform: translateY(-1px);
}

.ir-doc-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--frosted-mint);
}

.ir-doc-title {
  margin-top: 0.4rem;
  font-size: 0.98rem;
  font-weight: 500;
  color: #f9fbff;
}

.ir-doc-text {
  margin-top: 0.3rem;
  line-height: 1.6;
}

/* CTA tweaks for IR */
.about-cta.ir-cta {
  background: #010308;
  padding-top: 3.2rem;
}

.ir-cta .about-cta-inner {
  border-color: rgba(51, 102, 153, 0.85);
}

/* =========================================================
 * Responsive
 * ======================================================= */

@media (max-width: 768px) {
  .about-hero,
  .careers-hero,
  .ir-hero {
    padding-top: 3.3rem;
    padding-bottom: 3.4rem;
  }

  .about-hero-inner,
  .careers-hero-inner,
  .ir-hero-inner {
    text-align: left;
  }

  .hero-subtitle {
    max-width: none;
  }

  .structure-graph {
    grid-template-columns: 1fr;
  }

  .about-cta-inner {
    padding: 1.7rem 1.5rem;
  }

  .cta-actions {
    flex-direction: column;
  }

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

  .careers-process-steps li {
    padding-left: 2.2rem;
  }

  .careers-values,
  .careers-openings,
  .careers-process,
  .ir-snapshot,
  .ir-strategy,
  .ir-governance,
  .ir-documents,
  .about-cta.careers-cta,
  .about-cta.ir-cta {
    padding-inline: 1.25rem;
  }

  /* Mobile: collapse roadmap to single column but keep center line */
  .ir-roadmap-item--left,
  .ir-roadmap-item--right {
    padding-left: 2.2rem;
    padding-right: 0;
    justify-content: flex-start;
  }

  .ir-roadmap-track {
    left: 1.1rem;
    transform: translateX(0);
  }

  .ir-roadmap-dot {
    left: 1.1rem;
    transform: translate(-50%, -50%);
  }

  .ir-roadmap-content {
    max-width: none;
  }
}

/* --- About: auto-align taglines section by orientation/aspect ratio --- */

/* Base: normal section flow (works in portrait + small heights) */
.about-taglines{
  padding: clamp(2.75rem, 7vh, 5.5rem) 0;
}

/* Only in wide/landscape-ish viewports: make it a full-height centered panel */
@media (min-aspect-ratio: 4/3) and (min-width: 900px) {
  .about-taglines{
    min-height: 100svh;               /* better than 100vh on mobile */
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .about-taglines .taglines-inner{
    width: min(56rem, 92%);
    margin-inline: auto;
  }
}

/* Portrait: keep it flowing, reduce padding a bit */
@media (orientation: portrait) {
  .about-taglines{
    min-height: auto;
    display: block;
    padding: clamp(2.25rem, 5vh, 4rem) 0;
  }
}
