/* ============================================================
   CapacityPod — pages.css
   Page-specific styles not covered by base/nav-footer
   Spec v1 · Build 2026-04-08
   ============================================================ */

/* ----------------------------------------------------------
   Hero — Full-bleed image (Home, Careers)
   ---------------------------------------------------------- */

.hero-image {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: calc(var(--nav-height) + var(--space-16));
  padding-bottom: var(--space-12);
}

@media (max-width: 767px) {
  .hero-image {
    min-height: 560px;
    padding-top: calc(var(--nav-height) + var(--space-12));
    padding-bottom: var(--space-8);
  }
}

.hero-image__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Apply color filter to desaturate tropical colors and cool the image */
  filter: grayscale(60%) contrast(1.1) brightness(0.85);
}

.hero-image__overlay {
  position: absolute;
  inset: 0;
  /* Darker gradient prioritizing legibility over the entire left side */
  background: linear-gradient(to right, rgba(29,29,27,0.85) 0%, rgba(29,29,27,0.6) 40%, rgba(29,29,27,0.2) 100%),
              linear-gradient(to bottom, rgba(29,29,27,0.4) 0%, transparent 60%);
  z-index: 1;
}

.hero-image__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-content-width);
  margin-inline: auto;
  padding-inline: 80px;
  width: 100%;
}

@media (max-width: 1023px) {
  .hero-image__content {
    padding-inline: 40px;
  }
}

@media (max-width: 767px) {
  .hero-image__content {
    padding-inline: 20px;
  }
}

.hero-image__inner {
  max-width: 720px;
}

.hero-image__eyebrow {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.90);
  margin-bottom: 16px;
  display: block;
}

.hero-image__title {
  color: var(--color-white);
  margin-bottom: 24px;
}

.hero-image__subhead {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.25rem;
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: rgba(255,255,255,0.90);
  max-width: 560px;
  margin-bottom: var(--space-5);
}

@media (max-width: 767px) {
  .hero-image__subhead {
    font-size: 1.0625rem;
  }
}

/* Grafismo in hero (lower-right, cropped) */
.hero-image__grafismo {
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 480px;
  height: 480px;
  opacity: 0.10;
  z-index: 1;
  pointer-events: none;
}

.hero-image__grafismo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ----------------------------------------------------------
   Hero — Text-only / Tint background
   ---------------------------------------------------------- */

.hero-text {
  background-color: var(--color-bg-tint);
  padding-top: calc(var(--nav-height) + var(--space-12));
  padding-bottom: var(--space-10);
  position: relative;
  overflow: hidden;
}

.hero-text__inner {
  max-width: var(--max-content-width);
  margin-inline: auto;
  padding-inline: 80px;
  max-width: 720px;
  margin-inline: auto;
}

/* overriding padding-inline for container */
.hero-text > .container {
  padding-inline: 80px;
}

.hero-text__grafismo {
  position: absolute;
  top: -40px;
  right: -80px;
  width: 520px;
  height: 520px;
  opacity: 0.06;
  pointer-events: none;
}

.hero-text__grafismo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 1023px) {
  .hero-text > .container,
  .hero-text__inner {
    padding-inline: 40px;
  }
}

@media (max-width: 767px) {
  .hero-text > .container,
  .hero-text__inner {
    padding-inline: 20px;
  }
  .hero-text {
    padding-top: calc(var(--nav-height) + var(--space-8));
    padding-bottom: var(--space-8);
  }
}

/* ----------------------------------------------------------
   Hero — Split (image + text side-by-side, tint bg)
   ---------------------------------------------------------- */

.hero-split {
  background-color: var(--color-bg-tint);
  padding-top: calc(var(--nav-height) + var(--space-12));
  padding-bottom: var(--space-10);
  overflow: hidden;
}

/* ----------------------------------------------------------
   Talent band (full-bleed with overlay, mid-page)
   ---------------------------------------------------------- */

.talent-band {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

@media (max-width: 767px) {
  .talent-band {
    min-height: 400px;
  }
}

.talent-band__bg {
  position: absolute;
  inset: 0;
}

.talent-band__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.talent-band__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(29,29,27,0.65);
}

/* Nova spec 2026-04-10: Purple Deep multiply for Individual_desk2 placement */
.talent-band__overlay--purple {
  background-color: rgba(54,34,86,0.70);
}

@media (max-width: 767px) {
  .talent-band__overlay--purple {
    background-color: rgba(54,34,86,0.80);
  }
}

/* ----------------------------------------------------------
   Photo-specific hero overrides — Nova spec 2026-04-10
   ---------------------------------------------------------- */

/* Homepage hero (Individual_desk.jpg) — preserve warm lamp light,
   Corporate Navy left-fade + Purple Deep 15% multiply full-image */
.hero-image--home .hero-image__bg img {
  filter: none;
}

.hero-image__overlay--home {
  background:
    linear-gradient(to right, rgba(35,20,58,0.85) 0%, rgba(35,20,58,0.55) 35%, rgba(35,20,58,0) 55%),
    rgba(54,34,86,0.15);
}

@media (max-width: 1023px) and (min-width: 768px) {
  .hero-image__overlay--home {
    background:
      linear-gradient(to bottom, rgba(35,20,58,0.80) 0%, rgba(35,20,58,0.35) 40%, rgba(35,20,58,0.15) 100%),
      rgba(54,34,86,0.15);
  }
}

@media (max-width: 767px) {
  .hero-image__overlay--home {
    background: rgba(35,20,58,0.55);
  }
}

/* Careers hero (Individual_desk3.jpg) — Corporate Navy 55%
   + right-side darker gradient to 70% */
.hero-image--careers .hero-image__bg img {
  filter: none;
}

.hero-image__overlay--careers {
  background:
    linear-gradient(to right, rgba(35,20,58,0.55) 0%, rgba(35,20,58,0.55) 50%, rgba(35,20,58,0.70) 100%);
}

@media (max-width: 1023px) and (min-width: 768px) {
  .hero-image__overlay--careers {
    background: rgba(35,20,58,0.65);
  }
}

@media (max-width: 767px) {
  .hero-image__overlay--careers {
    background: rgba(35,20,58,0.60);
  }
}

.talent-band__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: var(--space-10);
}

.talent-band__inner {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
  color: var(--color-white);
}

.talent-band__inner .eyebrow {
  color: rgba(255,255,255,0.70);
  margin-bottom: 16px;
}

.talent-band__inner h2 {
  color: var(--color-white);
  margin-bottom: 16px;
}

.talent-band__inner p {
  color: rgba(255,255,255,0.90);
  margin-bottom: var(--space-5);
}

/* ----------------------------------------------------------
   CTA Band (full-width, brand purple)
   ---------------------------------------------------------- */

.cta-band {
  background-color: var(--color-brand-primary);
  color: var(--color-white);
  padding-block: var(--space-10);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-band__grafismo {
  position: absolute;
  top: -60px;
  left: -100px;
  width: 500px;
  height: 500px;
  opacity: 0.10;
  pointer-events: none;
}

.cta-band__grafismo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cta-band__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin-inline: auto;
}

.cta-band__inner h2 {
  color: var(--color-white);
  margin-bottom: 16px;
}

.cta-band__inner p {
  color: rgba(255,255,255,0.90);
  margin-bottom: var(--space-5);
}

/* ----------------------------------------------------------
   Philosophy items (About page — open layout, no card borders)
   ---------------------------------------------------------- */

.philosophy-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.philosophy-item {
  padding: 0 var(--space-5);
  border-right: 1px solid var(--color-divider);
}

.philosophy-item:first-child {
  padding-left: 0;
}

.philosophy-item:last-child {
  border-right: none;
  padding-right: 0;
}

.philosophy-item h3 {
  font-size: 1.25rem;
  color: var(--color-brand-primary);
  margin-bottom: 12px;
}

.philosophy-item p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
}

@media (max-width: 1023px) {
  .philosophy-items {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
  }
  .philosophy-item {
    padding: 0;
    border-right: none;
    border-bottom: 1px solid var(--color-divider);
    padding-bottom: var(--space-5);
  }
  .philosophy-item:nth-child(even) {
    border-bottom: none;
  }
}

@media (max-width: 767px) {
  .philosophy-items {
    grid-template-columns: 1fr;
  }
  .philosophy-item {
    border-right: none;
    border-bottom: 1px solid var(--color-divider);
    padding: 0 0 var(--space-5) 0;
  }
  .philosophy-item:last-child {
    border-bottom: none;
  }
}

/* ----------------------------------------------------------
   What You Get items (Careers page — horizontal strip)
   ---------------------------------------------------------- */

.what-you-get {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.what-you-get__item {
  padding: 0 var(--space-4);
  border-right: 1px solid var(--color-divider);
}

.what-you-get__item:first-child {
  padding-left: 0;
}

.what-you-get__item:last-child {
  border-right: none;
  padding-right: 0;
}

.what-you-get__item h4 {
  font-size: 1rem;
  color: var(--color-brand-primary);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.what-you-get__item p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
}

@media (max-width: 1023px) {
  .what-you-get {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
  .what-you-get__item {
    padding: 0;
    border-right: none;
    border-bottom: 1px solid var(--color-divider);
    padding-bottom: var(--space-4);
  }
  .what-you-get__item:last-child {
    border-bottom: none;
  }
}

@media (max-width: 767px) {
  .what-you-get {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------------
   Role category blocks (Nearshoring page)
   ---------------------------------------------------------- */

.role-blocks {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.role-block {
  padding: 0 var(--space-4);
  border-right: 1px solid var(--color-bg-subtle);
}

.role-block:first-child {
  padding-left: 0;
}

.role-block:last-child {
  border-right: none;
  padding-right: 0;
}

.role-block__title {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.role-block__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.role-block__list li {
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

@media (max-width: 1023px) {
  .role-blocks {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
  .role-block {
    padding: 0;
    border-right: none;
    border-bottom: 1px solid var(--color-bg-subtle);
    padding-bottom: var(--space-4);
  }
  .role-block:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

@media (max-width: 767px) {
  .role-blocks {
    grid-template-columns: 1fr;
  }
  .role-block:last-child {
    border-bottom: none;
  }
}

/* ----------------------------------------------------------
   Self-selection grid (Careers)
   ---------------------------------------------------------- */

.self-selection {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  position: relative;
}

.self-selection::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background-color: var(--color-divider);
}

.self-selection__col h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-4);
}

.self-selection__col--positive h3 {
  color: var(--color-brand-primary);
}

.self-selection__col--negative h3 {
  color: var(--color-text-secondary);
}

.self-selection__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.self-selection__list li {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--color-text-primary);
  line-height: 1.55;
  padding-left: 20px;
  position: relative;
}

.self-selection__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-purple-grey-mid);
}

@media (max-width: 767px) {
  .self-selection {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .self-selection::after {
    display: none;
  }
}

/* ----------------------------------------------------------
   What Happens Next steps (Contact)
   ---------------------------------------------------------- */

.next-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  text-align: center;
}

.next-step__number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-brand-primary);
  color: var(--color-white);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: 16px;
}

.next-step__text {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
}

@media (max-width: 767px) {
  .next-steps {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    text-align: left;
  }
  .next-step__number {
    margin-inline: 0;
  }
}

/* ----------------------------------------------------------
   Contact form card
   ---------------------------------------------------------- */

.contact-form-card {
  max-width: 640px;
  margin-inline: auto;
}

.contact-form__success {
  display: none;
  text-align: center;
  padding: var(--space-8);
}

/* Inline legal placeholder */
.legal-placeholder {
  display: inline-block;
  background-color: #FFF3CD;
  border: 1px solid #FFBF00;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.75rem;
  color: #7A5C00;
}

/* ----------------------------------------------------------
   Other ways to connect (Contact)
   ---------------------------------------------------------- */

.connect-block {
  max-width: 480px;
  margin-inline: auto;
  text-align: center;
}

.connect-block__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--color-text-primary);
}

.connect-block__item a {
  color: var(--color-brand-primary);
}

.connect-block__item a:hover {
  text-decoration: underline;
}

.connect-block__address {
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-top: 24px;
}

/* ----------------------------------------------------------
   Page hero spacing offset (for sticky nav)
   ---------------------------------------------------------- */

.page-body {
  padding-top: 0; /* nav is fixed/sticky, sections handle their own top padding */
}
